Skip to content

Commit 80bf9c6

Browse files
committed
use single powerdown script
Signed-off-by: Vincent-FK <[email protected]>
1 parent 5ab34a8 commit 80bf9c6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

main.c

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

257257
/* Send command to cancel any previously scheduled powerdown */
258-
fp = popen(SHELL_CMD_CANCEL_SCHED_POWERDOWN, "r");
258+
fp = popen(SHELL_CMD_POWERDOWN_HANDLE, "r");
259259
if (fp == NULL)
260260
{
261261
/* Countdown is still ticking, so better do nothing

menu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ void run_menu_loop()
921921
if(menu_confirmation){
922922
MENU_DEBUG_PRINTF("Powerdown - confirmed\n");
923923
/// ----- Shell cmd ----
924-
execlp(SHELL_CMD_SHUTDOWN_FUNKEY, SHELL_CMD_SHUTDOWN_FUNKEY, NULL);
925-
MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_SHUTDOWN_FUNKEY);
924+
execlp(SHELL_CMD_POWERDOWN, SHELL_CMD_POWERDOWN, NULL);
925+
MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_POWERDOWN);
926926
exit(0);
927927
}
928928
else{

menu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS;
4444
#define SHELL_CMD_NOTIF_CLEAR "notif clear"
4545
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
4646
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
47-
#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown"
47+
#define SHELL_CMD_POWERDOWN "powerdown"
48+
#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle"
4849
#define SHELL_CMD_INSTANT_PLAY "instant_play"
49-
#define SHELL_CMD_SHUTDOWN_FUNKEY "shutdown_funkey"
5050
#define SHELL_CMD_KEYMAP_DEFAULT "keymap default"
5151
#define SHELL_CMD_KEYMAP_RESUME "keymap resume"
5252

0 commit comments

Comments
 (0)