From 751765b732cc914f45ca123f609af7fc09baa208 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 17 May 2021 19:57:29 +0100 Subject: [PATCH] mac.cgi: Use new system methods Signed-off-by: Michael Tremer --- html/cgi-bin/mac.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/mac.cgi b/html/cgi-bin/mac.cgi index 161be3421e..f4c5aa2d4b 100644 --- a/html/cgi-bin/mac.cgi +++ b/html/cgi-bin/mac.cgi @@ -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 "$Lang::tr{'mac address done'}\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 "  

"; print ""; -- 2.39.5