Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/kern
jmcneill%invisible.ca@localhost wrote:
> Izumi Tsutsui wrote:
> > perry%piermont.com@localhost wrote:
> >
> >> Izumi Tsutsui <tsutsui%netbsd.org@localhost> writes:
> >>> - when prompting for the init path, support the special strings
> >>> "halt", "reboot", and "ddb", as well as a prompt for the root device.
> >> It might be useful if the prompt mentioned those options so people
> >> would remember them.
> >
> > I think so, but do you have any exact idea how it should look like?
> > "init path (default %s), or ddb, reboot, halt:" etc?
>
> What about a separate 'help' or '?' command that shows usage?
It looks a bit extensive since that prompt just requires
path to init(8) by default and those keywords are exceptions,
unlike the bootloader prompt.
How abouht this way?
- if input strings are started with "/", try to exec it
- if input strings are not startd with "/" check option keywords
- if none matches show
use absolute path, ddb, halt, or reboot
like root device prompt:
>> root device (default wd0a): help
>> use one of: tlp0 wd0[a-p] ddb halt reboot
>> root device (default wd0a): foo
>> use one of: tlp0 wd0[a-p] ddb halt reboot
>> root device (default wd0a):
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index