summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-27 10:51:14 +0100
committerSimon Rettberg2020-02-27 10:51:14 +0100
commite89a37da7ac87a9cf79f9a8465ab306c9bcacf51 (patch)
tree03bee614437928a9a1983533b7e81051919f8450
parent[inc/Database] Convert bool params to 1 or 0 (diff)
downloadslx-admin-e89a37da7ac87a9cf79f9a8465ab306c9bcacf51.tar.gz
slx-admin-e89a37da7ac87a9cf79f9a8465ab306c9bcacf51.tar.xz
slx-admin-e89a37da7ac87a9cf79f9a8465ab306c9bcacf51.zip
[rebootcontrol] Fix WOL within same subnet
-rw-r--r--modules-available/rebootcontrol/inc/rebootcontrol.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
index f392dcdc..4e21deee 100644
--- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
+++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
@@ -247,6 +247,8 @@ class RebootControl
$command = 'jawol';
if (!empty($bcast)) {
$command .= " -d '$bcast'";
+ } else {
+ $command .= ' -i br0';
}
if (!empty($passwd)) {
$command .= " -p '$passwd'";