mirror of
https://github.com/unraid/webgui.git
synced 2026-02-22 10:21:39 -06:00
Add events
This commit is contained in:
5
emhttp/plugins/dynamix/event/array_started/WOLStart
Normal file
5
emhttp/plugins/dynamix/event/array_started/WOLStart
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# run & log functions
|
||||
|
||||
/usr/local/emhttp/plugins/dynamix/include/script/WOL_action load &
|
||||
5
emhttp/plugins/dynamix/event/stopping/WOLStop
Normal file
5
emhttp/plugins/dynamix/event/stopping/WOLStop
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# run & log functions
|
||||
|
||||
/usr/local/emhttp/plugins/dynamix/include/script/WOL_action stop &
|
||||
@@ -166,6 +166,9 @@ if ($found && $mac_list[$mac]['enable'] == "enable") {
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else echo "Not Found $mac ignoring";
|
||||
} else {
|
||||
if ($mac_list[$mac]['enable'] == "disable") echo "Not Found $mac set to disabled";
|
||||
else echo "Not Found $mac ignoring or Maybe actions disabled for type(Docker/VM/LXC)";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -52,7 +52,9 @@ unraidwold_status(){
|
||||
|
||||
unraidwold_load()
|
||||
{
|
||||
unraidwold_stop
|
||||
if unraidwold_running; then
|
||||
unraidwold_stop
|
||||
fi
|
||||
sleep 1
|
||||
if [ "$WOLENABLED" == "yes" ]; then
|
||||
interfacemode=""
|
||||
@@ -67,7 +69,7 @@ unraidwold_load()
|
||||
fi
|
||||
|
||||
unraidwold_start --interface $INTERFACE $interfacemode $logoptions
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user