mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
wlanap.cgi: Use new perl system functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -148,16 +148,16 @@ if ( $wlanapsettings{'ACTION'} eq "$Lang::tr{'save'}" ){
|
||||
&General::writehash("/var/ipfire/wlanap/settings", \%wlanapsettings);
|
||||
&WriteConfig_hostapd();
|
||||
|
||||
system("/usr/local/bin/wlanapctrl restart >/dev/null 2>&1");
|
||||
&General::system("/usr/local/bin/wlanapctrl", "restart");
|
||||
pid();
|
||||
}
|
||||
}elsif ( $wlanapsettings{'ACTION'} eq "$Lang::tr{'wlanap interface'}" ){
|
||||
&General::writehash("/var/ipfire/wlanap/settings", \%wlanapsettings);
|
||||
}elsif ( ($wlanapsettings{'ACTION'} eq "$Lang::tr{'start'}") && ($memory == 0) ){
|
||||
system("/usr/local/bin/wlanapctrl start >/dev/null 2>&1");
|
||||
&General::system("/usr/local/bin/wlanapctrl", "start");
|
||||
pid();
|
||||
}elsif ( $wlanapsettings{'ACTION'} eq "$Lang::tr{'stop'}" ){
|
||||
system("/usr/local/bin/wlanapctrl stop >/dev/null 2>&1");
|
||||
&General::system("/usr/local/bin/wlanapctrl", "stop");
|
||||
$memory=0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user