2 do 'adsl-client-lib.pl';
4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
8 return ( $config{'pppoe_conf'}, $config{'pap_file'} );
12 # Called before the files are actually read
19 # Called after the files are actually read
26 # Called before the files are restored from a backup
32 # post_restore(&files)
33 # Called after the files are restored from a backup
36 local ($dev, $ip) = &get_adsl_ip();
38 # Stop and re-start connection
39 local $out = &backquote_logged("$config{'stop_cmd'} 2>&1");
41 return "<pre>$out</pre>";
43 $out = &backquote_logged("$config{'start_cmd'} 2>&1 </dev/null");
45 return "<pre>$out</pre>";