diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 11 | 
1 files changed, 11 insertions, 0 deletions
@@ -96,6 +96,7 @@ static void parse_config(GKeyFile *config)  	GError *err = NULL;  	char *str;  	int val; +	gboolean boolean;  	if (!config)  		return; @@ -173,6 +174,16 @@ static void parse_config(GKeyFile *config)  		main_opts.inqmode = val;  	} +	boolean = g_key_file_get_boolean(config, "General", +						"InitiallyPowered", +						&err); +	if (err) { +		debug("%s", err->message); +		g_clear_error(&err); +	} else if (boolean == FALSE) +		main_opts.mode = MODE_OFF; + +  	main_opts.link_mode = HCI_LM_ACCEPT;  	main_opts.link_policy = HCI_LP_RSWITCH | HCI_LP_SNIFF |  | 
