3 # Shut down the ADSL connection
5 require './adsl-client-lib.pl';
7 &error_setup($text{'stop_err'});
9 $out = &backquote_logged("$config{'stop_cmd'} 2>&1");
11 &error("<pre>$out</pre>");
14 &ui_print_header(undef, $text{'stop_title'}, "");
16 # Wait for it to really stop
17 for($i=0; $i<20 && $ip; $i++) {
19 ($dev, $ip) = &get_adsl_ip();
22 print "<p>$text{'stop_failed'}<p>\n";
25 print "<p>$text{'stop_ok'}<p>\n";
28 &ui_print_footer("", $text{'index_return'});