Introduce a command line option to pass sleep password.

And fix return code for "launching" system app.
This commit is contained in:
mdaftari
2018-10-26 15:22:08 -07:00
parent 231dd4e462
commit 3e6d3981ac
3 changed files with 38 additions and 11 deletions

View File

@@ -50,6 +50,10 @@
#define WAKE_OPTION_LONG "--wake-on-wifi-len"
#define WAKE_DESCRIPTION "Enable wake on wifi/len. Value: on/off. Default (on)"
#define SLEEP_PASSWORD "-S"
#define SLEEP_PASSWORD_LONG "--sleep-password"
#define SLEEP_PASSWORD_DESCRIPTION "Password required to put the device to deep sleep"
struct dial_options
{
const char * pOption;
@@ -88,6 +92,11 @@ struct dial_options gDialOptions[] =
WAKE_OPTION,
WAKE_OPTION_LONG,
WAKE_DESCRIPTION
},
{
SLEEP_PASSWORD,
SLEEP_PASSWORD_LONG,
SLEEP_PASSWORD_DESCRIPTION
}
};