Sunday, January 12, 2014

Restarting and Shutting down linux using direct kernel command

I have a  pocket wifi device which is based on ARMv6 and linux installed, When I tried to do a reboot -h now and shutdown -h now command, it registered a command not found so I figured the busybox did not enable this two useful command.

as an alternative I had to call reboot and shutdown command directly from the linux kernel

to reboot just type:
echo b > /proc/sysrq-trigger

this will immediately reboot the system without syncing or unmounting your disk

to shutdown just type:
echo o >/proc/sysrq-trigger
this will shutoff your system



hope this helps

No comments:

Post a Comment