mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-01-19 06:14:59 +01:00
use single powerdown script
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
f62937bf8a
commit
e53e33cfcf
@ -1534,7 +1534,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
|
||||
|
||||
@ -1021,8 +1021,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{
|
||||
|
||||
@ -40,9 +40,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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user