well every runlevel has its own directory so i think u can modify the .bashrc of runlevel3
the dir i think exists under /etc/rc.d
hope u find this useful ----- Original Message ----- From: "Nikhil Joshi" nikhil_joshi@gmx.net To: linuxers@mm.ilug-bom.org.in Sent: Monday, November 10, 2003 10:14 PM Subject: [ILUG-BOM]Halt option at start
Next LUG meet: 9 Nov 2003 around 4 pm - VJTI
Hi!
I was pondering over this for long. Is it possible to give a halt/reboot option at console when the system is started at runlevel 3 ? This is given by default if you login at runlevel 5.
One method seems to be :
- Make a user named halt ( there already seems to be in /etc/passwd )
- Disable its password
- edit its .bashrc so that halt command is issued immediately on login
- similar steps for reboot
Can someone suggest some other more secure/logical solution to this ? Is the halt/reboot functionality in runlevel 5 achieved with same method as discussed above ?
-- Nikhil Joshi http://nikhil.ne1.net