diff options
author | 2012-02-05 03:35:50 -0500 | |
---|---|---|
committer | 2012-02-05 03:36:23 -0500 | |
commit | ffefb55a4a1bc00bceaa1ba477cf1db3e8635589 (patch) | |
tree | 26aeea6037253ce51a3c460b319bfb22782eeaad /src | |
parent | Better variable names (diff) | |
download | openrc-settingsd-ffefb55a4a1bc00bceaa1ba477cf1db3e8635589.tar.gz openrc-settingsd-ffefb55a4a1bc00bceaa1ba477cf1db3e8635589.tar.bz2 openrc-settingsd-ffefb55a4a1bc00bceaa1ba477cf1db3e8635589.zip |
Add --read-only flag
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,10 +30,12 @@ #define DEFAULT_LEVELS (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE) static gboolean debug = FALSE; +static gboolean read_only = FALSE; static GOptionEntry option_entries[] = { { "debug", 0, 0, G_OPTION_ARG_NONE, &debug, "Enable debugging messages", NULL }, + { "read-only", 0, 0, G_OPTION_ARG_NONE, &read_only, "Run in read-only mode", NULL }, { NULL } }; @@ -65,7 +67,7 @@ main (gint argc, gchar *argv[]) } shell_utils_init (); - hostnamed_init (FALSE); + hostnamed_init (read_only); loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); |