]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
wakeonlan.cgi: Use new perl system functions
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 14:24:29 +0000 (15:24 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 14:24:29 +0000 (15:24 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/wakeonlan.cgi

index 289dc224a8e56e63224abc4293c2a2c5931c449d..164cec2de1e1889350e30079e9b287d2eaae819e 100644 (file)
@@ -171,7 +171,7 @@ if ( $cgiparams{'ACTION'} eq 'wakeup' )
 
   undef %cgiparams;
 
-  system("/usr/sbin/etherwake -i $iface $mac");
+  &General::system("/usr/sbin/etherwake", "-i", "$iface", "$mac");
 
   # make a box with info, 'refresh' to normal screen after 5 seconds
   if ( $refresh eq 'yes' )