3 cp /etc/inittab /etc/inittab.backup
4 sed -i "s|rm:2345:.*multi|#&|g" "/etc/inittab"
5 sed -i "s|rh:06:.*shutdown|#&|g" "/etc/inittab"
6 sed -i "s|su:S:.*sulogin -p|#&|g" "/etc/inittab"
7 sed -i 's|# End of file|\nrm:2345:wait:/etc/rc.multi > /dev/null\nrh:06:wait:/etc/rc.shutdown\nsu:S:wait:/sbin/sulogin -p\n\n# End of file|g' "/etc/inittab"
10 echo -e "\033[37;41;1m Read First \033[0m"
11 echo "/etc/inittab is backuped as /etc/inittab.backup!"
12 echo "Now reboot 2 times. One for collecting data and another for testing. Enjoy!"
13 echo "Please read the wiki for more informations!"
18 mv /etc/inittab.backup /etc/inittab
23 mv /etc/inittab.backup /etc/inittab