TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:6074] Better LILO switch wanted
Hi,
On Tue, 18 May 1999, Fred H. Olson wrote:
> There's got to be a better way.
>
> Either a toggle switch theat LILO reads somehow or keys typed at the
> beginning of the boot that are stored till LILO needs them or some clever
> action that LILO can detect. Any ideas?
Well, you can have two seperate lilo.conf's with each different OS as the
default, and have a couple of shutdown scripts (or one with commandline
options):
#!/bin/sh
case "$1" in
linux)
echo "Making Linux the default..."
lilo -C /etc/lilo.conf.linux
init 6
;;
doze)
echo "You better be doing this for a good cause..."
lilo -C /etc/lilo.conf.doze
init 6
;;
*)
echo "Usage: $0 [Insert OS here]"
exit 1
esac
exit 0
-YMMV... call it myboot, chmod 755 it and put it in /sbin or something...
-Yaron
--