mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 13:32:59 +02:00
mac.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -94,7 +94,7 @@ if ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {
|
||||
}
|
||||
}
|
||||
if ($macsettings{'ACTION'} eq $Lang::tr{'reconnect'}) {
|
||||
system("/usr/local/bin/redctrl restart >/dev/null 2>&1 &");
|
||||
&General::system_background("/usr/local/bin/redctrl", "restart");
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'mac address recon'} );
|
||||
print "<font class='base'>$Lang::tr{'mac address done'}</font>\n";
|
||||
&Header::closebox();
|
||||
@@ -107,7 +107,7 @@ if ($macsettings{'ACTION'} eq $Lang::tr{'delete'} ) {
|
||||
}
|
||||
if ($macsettings{'ACTION'} eq $Lang::tr{'reboot'}) {
|
||||
&General::log($Lang::tr{'rebooting ipfire'});
|
||||
system("/usr/local/bin/ipfirereboot boot");
|
||||
&General::system("/usr/local/bin/ipfirereboot", "boot");
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'rebooting ipfire'} );
|
||||
print " <img src='/images/indicator.gif' /><br /><br />";
|
||||
print "<meta http-equiv='refresh' content='120;'>";
|
||||
|
||||
Reference in New Issue
Block a user