Hi,
hab ein Problem mit dem automatischen reboot. Der Rechner führt /sbin/halt anstatt shutdown -r now aus.
Ich nutze die mitgelieferte shutdown.sh.
Code
[...]
# analyse
case $PIPESTATUS in
0)
# all went ok - new date and time set
${SUDO} /sbin/halt
EXITSTATUS=0
;;
1)
# all went ok - new date and time set.
#
# *** but we need to reboot. ***
#
# for some boards this is needed after every change.
#
# for some other boards, we only need this after changing the
# status flag, i.e. from enabled to disabled or the other way.
# grub installed?
if [ ${BOOT_MANAGER} == "grub" ]
then
if [ -x /sbin/grub-set-default ];
then
${SUDO} /bin/mount /boot
${SUDO} /sbin/grub-set-default ${REBOOT_ENTRY}
else
echo "Not supported - upgrade grub to latest _unstable_ version and it should work"
fi
else
# i hope it is lilo
${SUDO} /sbin/lilo -R PowerOff
fi
${SUDO} shutdown -r now
EXITSTATUS=1
;;
2)
# something went wrong
# don't do anything - just exit with status 1
EXITSTATUS=1
echo "Something went wrong, please check your config files of nvram-wakeup"
;;
esac
# exit with 0 if everything went ok.
# exit with 1 if something went wrong.
exit $EXITSTATUS
[...]
Alles anzeigen
Wo und wie wird denn festgelegt, ob der
0 oder 1 ist?
Gruß
Detlef