3 # Save global PPTP PPP options
5 require './pptp-client-lib.pl';
7 &error_setup($text{'opts_err'});
9 &lock_file($config{'pptp_options'});
10 @opts = &parse_ppp_options($config{'pptp_options'});
12 &save_ppp_option(\@opts, $config{'pptp_options'}, "mtu", undef);
15 $in{'mtu'} =~ /^\d+$/ || &error($text{'opts_emtu'});
16 &save_ppp_option(\@opts, $config{'pptp_options'}, "mtu",
17 { 'name' => 'mtu', 'value' => $in{'mtu'} });
20 &save_ppp_option(\@opts, $config{'pptp_options'}, "mru", undef);
23 $in{'mru'} =~ /^\d+$/ || &error($text{'opts_emru'});
24 &save_ppp_option(\@opts, $config{'pptp_options'}, "mru",
25 { 'name' => 'mru', 'value' => $in{'mru'} });
27 &parse_mppe_options(\@opts, $config{'pptp_options'});
29 &unlock_file($config{'pptp_options'});