Création du script de redémarrage (reboot)

Créez un nouveau fichier /etc/init.d/reboot contenant ce qui suit:


cat > reboot << "EOF"
#!/bin/sh
# Begin /etc/init.d/reboot

#
# Appelle reboot. Cf. man halt pour la signification des parametres.
#


echo "Redemarrage du systeme en cours..."

/sbin/reboot -d -f -i

# End /etc/init.d/reboot
EOF