Use yes and no for onboot option.
authorJamie Cameron <jcameron@webmin.com>
Mon, 24 Jan 2011 21:01:35 +0000 (13:01 -0800)
committerJamie Cameron <jcameron@webmin.com>
Mon, 24 Jan 2011 21:01:35 +0000 (13:01 -0800)
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3164661&group_id=17457

adsl-client/rbootup.cgi

index 3ffb35f..257a56b 100755 (executable)
@@ -8,7 +8,7 @@ require './adsl-client-lib.pl';
 
 &lock_file($config{'pppoe_conf'});
 $conf = &get_config();
-&save_directive($conf, "ONBOOT", $in{'onboot'});
+&save_directive($conf, "ONBOOT", $in{'onboot'} ? 'yes' : 'no');
 &flush_file_lines();
 &unlock_file($config{'pppoe_conf'});
 &webmin_log($in{'onboot'} eq 'yes' ? 'bootup' : 'bootdown');