Re: Menu on bootup?
Nevyn <[email protected]> Mon, 17 Oct 2011 20:04:04 +1300
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <CAOnjfzywBZHYU3vK=j505Yt5M8Q6esdjijv5UGjdgrm96yMu2w@mail.gmail.com> |
On 17 October 2011 19:16, Nevyn <[email protected]> wrote: > Does anyone know what the usual approach is to showing a menu AFTER a linux > distro has been booted? I'm thinking in terms of the appliance type > distributions like pfsense (not Linux I know) or Clonezilla... So a menu > that shows up on tty1 only... > > -- > Regards, > Nevyn > http://nevsramblings.blogspot.com/ > On Clonezilla I've found: /etc/init.d/start-ocs-live With the following contents: exec </dev/console >/dev/console 2>&1 [ ! -d "/etc/ocs/ocs-live.d/" ] && exit 1 for script in /etc/ocs/ocs-live.d/S[0-9][0-9]*; do $script done The script stuff is fairly trivial. I've never really understood file descriptors. Is anyone able to explain that first line to me? exec </dev/console >/dev/console 2>&1 Regards, Nevyn http://nevsramblings.blogspot.com/ _______________________________________________ NZLUG mailing list [email protected] http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug