Use yes and no for onboot option.

https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3164661&group_id=17457
This commit is contained in:
Jamie Cameron
2011-01-24 13:01:35 -08:00
parent fa5ecfc824
commit 752bfa6f39

View File

@@ -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');