mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +00:00
initctl: developer mode, hidden command
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
d1efc60c84
commit
b3b7a33252
1 file changed
+10
@@ -793,6 +793,15 @@ static int usage(int rc)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int do_devel(char *arg)
|
||||||
|
{
|
||||||
|
(void)arg;
|
||||||
|
|
||||||
|
printf("Screen %dx%d\n", screen_cols, screen_rows);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int do_help(char *arg)
|
static int do_help(char *arg)
|
||||||
{
|
{
|
||||||
return usage(0);
|
return usage(0);
|
||||||
@@ -802,6 +811,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
struct command command[] = {
|
struct command command[] = {
|
||||||
{ "debug", toggle_debug },
|
{ "debug", toggle_debug },
|
||||||
|
{ "devel", do_devel },
|
||||||
{ "help", do_help },
|
{ "help", do_help },
|
||||||
{ "version", show_version },
|
{ "version", show_version },
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user