Skip to content

Commit 1888d71

Browse files
committed
use single powerdown script
Signed-off-by: Vincent-FK <[email protected]>
1 parent 2cc6248 commit 1888d71

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

frontend/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void quick_save_and_poweroff()
7878
printf("Save Instant Play file\n");
7979

8080
/* Send command to cancel any previously scheduled powerdown */
81-
fp = popen(SHELL_CMD_CANCEL_SCHED_POWERDOWN, "r");
81+
fp = popen(SHELL_CMD_POWERDOWN_HANDLE, "r");
8282
if (fp == NULL)
8383
{
8484
/* Countdown is still ticking, so better do nothing

frontend/menu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,8 @@ void run_menu_loop()
10861086
if(menu_confirmation){
10871087
MENU_DEBUG_PRINTF("Powerdown - confirmed\n");
10881088
/// ----- Shell cmd ----
1089-
execlp(SHELL_CMD_SHUTDOWN_FUNKEY, SHELL_CMD_SHUTDOWN_FUNKEY, NULL);
1090-
MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_SHUTDOWN_FUNKEY);
1089+
execlp(SHELL_CMD_POWERDOWN, SHELL_CMD_POWERDOWN, NULL);
1090+
MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_POWERDOWN);
10911091
exit(0);
10921092
}
10931093
else{

frontend/menu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS;
7272
#define SHELL_CMD_NOTIF_CLEAR "notif clear"
7373
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
7474
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
75-
#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown"
75+
#define SHELL_CMD_POWERDOWN "powerdown"
76+
#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle"
7677
#define SHELL_CMD_INSTANT_PLAY "instant_play"
77-
#define SHELL_CMD_SHUTDOWN_FUNKEY "shutdown_funkey"
7878
#define SHELL_CMD_KEYMAP_DEFAULT "keymap default"
7979
#define SHELL_CMD_KEYMAP_RESUME "keymap resume"
8080

0 commit comments

Comments
 (0)