diff --git a/frontend/main.c b/frontend/main.c index 4abaad284..124f1cdbe 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -78,7 +78,7 @@ void quick_save_and_poweroff() printf("Save Instant Play file\n"); /* Send command to cancel any previously scheduled powerdown */ - fp = popen(SHELL_CMD_CANCEL_SCHED_POWERDOWN, "r"); + fp = popen(SHELL_CMD_POWERDOWN_HANDLE, "r"); if (fp == NULL) { /* Countdown is still ticking, so better do nothing diff --git a/frontend/menu.c b/frontend/menu.c index 6bb262c24..cd3788a5d 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -1086,8 +1086,8 @@ void run_menu_loop() if(menu_confirmation){ MENU_DEBUG_PRINTF("Powerdown - confirmed\n"); /// ----- Shell cmd ---- - execlp(SHELL_CMD_SHUTDOWN_FUNKEY, SHELL_CMD_SHUTDOWN_FUNKEY, NULL); - MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_SHUTDOWN_FUNKEY); + execlp(SHELL_CMD_POWERDOWN, SHELL_CMD_POWERDOWN, NULL); + MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_POWERDOWN); exit(0); } else{ diff --git a/frontend/menu.h b/frontend/menu.h index c28d1d5f7..e47f6af2d 100644 --- a/frontend/menu.h +++ b/frontend/menu.h @@ -72,9 +72,9 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS; #define SHELL_CMD_NOTIF_CLEAR "notif clear" #define SHELL_CMD_AUDIO_AMP_ON "audio_amp on" #define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off" -#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown" +#define SHELL_CMD_POWERDOWN "powerdown" +#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle" #define SHELL_CMD_INSTANT_PLAY "instant_play" -#define SHELL_CMD_SHUTDOWN_FUNKEY "shutdown_funkey" #define SHELL_CMD_KEYMAP_DEFAULT "keymap default" #define SHELL_CMD_KEYMAP_RESUME "keymap resume"