@@ -285,7 +285,7 @@ static void delay_work_func(struct work_struct *work)
if(rst_flag >= 1)
{
- chardev_dev->status = 'P';
+ chardev_dev->status = 'R';
chardev_dev->data_len = 1;
wake_up_interruptible(&chardev_dev->read_queue);
}
@@ -37,7 +37,7 @@ void reboot_system() {
void shutdown_system() {
printf("shutdown command received, system shutting down...\n");
sync();
- execute_command("shutdown -h now");
+ execute_command("shutdown -hP now");
int main() {