]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
mac.cgi: Use new system methods
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 May 2021 18:57:29 +0000 (19:57 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 13:30:54 +0000 (14:30 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/mac.cgi

index 161be3421e0689ee8e3ab6be48389d70a374e888..f4c5aa2d4bff792b75587ac6035db047a1d2387b 100644 (file)
@@ -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 "&nbsp;&nbsp;<img src='/images/indicator.gif' /><br /><br />";
        print "<meta http-equiv='refresh' content='120;'>";