Hi All, I have a kernel module that needs to restart the system in a way that basically does a "shutdown -r now", because I need the shutdown scripts at level 6 to perform some necessary tasks. Right now, this code calls panic() which calls emergency_restart() which (at least on my machine) does not allow the shutdown scripts to run. I've tried calling kernel_restart(), and also tried C_A_D = 1; ctrl_alt_del(); but in both cases, the system restarted directly in the boot loader. Any ideas on how to gracefully restart from within the kernel? thanks in advance, Frank |