diff options
Diffstat (limited to 'init-sh/level1.sh')
-rwxr-xr-x | init-sh/level1.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/init-sh/level1.sh b/init-sh/level1.sh index 269873b..32d00f1 100755 --- a/init-sh/level1.sh +++ b/init-sh/level1.sh @@ -80,13 +80,11 @@ grpconv echo -e "done.\n" # Do not boot on a shell -echo -n "Setting up inittab to ask a passwd on boot : " +echo -n "Setting up inittab to authorize any user to issue ctrl-alt-del : " tmpfile=`mktemp /tmp/secure.XXXXXX` cp /etc/inittab ${tmpfile} -cat ${tmpfile} | sed s'/\/bin\/bash --login/\/sbin\/mingetty tty1/' > /etc/inittab +cat ${tmpfile} | \ + sed s'/\/bin\/bash --login/\/sbin\/mingetty tty1/' | \ + sed s'/ca::ctrlaltdel:\/sbin\/shutdown -a -t3 -r now/ca::ctrlaltdel:\/sbin\/shutdown -t3 -r now/' > /etc/inittab rm -f ${tmpfile} echo "done." - - - - |