You are not logged in.
Pages: 1
/sbin/halt reboots my laptop
/sbin/reboot is a symlink to 'halt' !?, and when i run it it hangs my laptop.
what happened?
chupocabra ... psupsuspsu psu psu
Offline
The symlink seems normal, it matches what I have. From man halt, under normal conditions 'halt' will invoke 'shutdown -h' and 'reboot' will invoke 'shutdown -r'.
As far as I know, the command 'halt' equals the command 'shutdown -h now' equals the command 'init 0'. And 'reboot' equals ' shutdown -r now' equals 'init 6'.
Results of 'file /sbin/<command>':
reboot: symbolic link to `halt'
poweroff: symbolic link to `halt'
halt: setuid setgid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), \
dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
shutdown: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), \
dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
The shutdown problems you're having would seem to be caused by something other than the symlinks. Perhaps it's the power management configuration?
Offline
try with:
sudo init 0
Offline
Pages: 1