Hi, On my school's computer, I have made a script that executes another script if it gets the specified options from the kernel's command line parameters. The script is a part of rc.local. It is: ---<SCRIPT>--- if grep runX /proc/cmdline > /dev/null 2>&1 then while true do /etc/X11/prefdm done elif grep text /proc/cmdline > /dev/null 2>&1 then for i in $(seq 1 6) do ( while true do /sbin/mingetty /dev/tty$i done ) & done fi ---</SCRIPT>---
The parameter that I give in the kernel is that same as the output of cat /proc/cmdline. It reads: ro root=/dev/hda9 vga=791 acpi=off 7 runx The text part works fine. The /proc/cmdline reads: ro root=/dev/hda9 vga=791 acpi=off 7 text PS: I have already created runlevel 7, okay? It is just a copy of 3 with some services removed and gettys removed so that I can specify everything on the cmdline. I also know that it can also be done in init and will be better. But, this is just for r&d. -- Regards, Arjun Asthana Registered Linux User #293731 / /\ #& / / \ #& (_) __ __ __ __ __ / / /\ \ #& / / / _ \ / // / \ \/ / / /_/\ \ \ #&@!8 /_/ /_//_/ \___/ /_/\_\ /______\ \ \ May the Source be with you \_________\/ _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/