|
|
@ -11,9 +11,13 @@ static const char *colorname[NUMCOLS] = {
|
|
|
|
/* treat a cleared input like a wrong password (color) */
|
|
|
|
/* treat a cleared input like a wrong password (color) */
|
|
|
|
static const int failonclear = 1;
|
|
|
|
static const int failonclear = 1;
|
|
|
|
|
|
|
|
|
|
|
|
/* length of entires in scom */
s
|
|
|
|
/* length of entries in scom */
|
|
|
|
static const int entrylen = 1;
|
|
|
|
static const int entrylen = 1;
|
|
|
|
|
|
|
|
|
|
|
|
static const secretpass scom[entrylen] = {
|
|
|
|
struct secretpass {
|
|
|
|
|
|
|
|
char const *pass;
|
|
|
|
|
|
|
|
char const *command;
|
|
|
|
|
|
|
|
} scom = {
|
|
|
|
/* Password command */
|
|
|
|
/* Password command */
|
|
|
|
{ "shutdown", "doas poweroff" },
};
|
|
|
|
"shutdown", "sudo shutdown -h now"
|
|
|
|
|
|
|
|
};
|
|
|
|