driver - Initiating system restart from kernel space -


I have a custom embedded board in which Linux is running, which is under the supervision of 24V power source in a driver's monitor is. If the source goes down then the battery gets more than the power and the IRQ is shut down. I want to start the reboot after 30 seconds running on the battery which gives the board gracefully down.

Currently

  emergency_sync (); Kernel_restart (zero);  

works but it suddenly brings down the system after almost half an minute of call to the kernel-retest. There is no announcement of resumption and the system normally runs until it does not happen. Can I start an "init 6" or resume with an announcement that closes everything properly arranged from the kernel space (such as turning on reboot on the command line)?

I think the function ctrl_alt_del () does what you want is normal It starts a prompt on init to start the reboot sequence.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -