Trying the 'reboot' command in the terminal (Where I do most of my stuff, most of my linux experiance is with the CLI) results in the following three lines of text:
Executing /etc/rc.d/rc.shutdown...
killall: savepuppyd: no process killed
Device 0 is not supported by this system
Puppy then freezes solid, hard reset is needed.
It's not the ed of the world, there's no need to have this working, it's just that my habbit is to type 'reboot' when I want to reboot.
A quick fix would be to quickly check if the script is being run on tty1 in /sbin/reboot. The following modification seems to run fine:
Code: Select all
#!/bin/sh
if [ `tty` = "/dev/tty1" ]; then
/etc/rc.d/rc.shutdown
exec /bin/busybox reboot
else
echo "Sorry, but this command cannot be run from the terminal.Please use the menu entry."
fi