Add events

This commit is contained in:
SimonFair
2023-12-15 21:08:54 +00:00
parent 49572e42d2
commit d7fe84ddc0
4 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# run & log functions
/usr/local/emhttp/plugins/dynamix/include/script/WOL_action load &

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# run & log functions
/usr/local/emhttp/plugins/dynamix/include/script/WOL_action stop &

View File

@@ -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)";
}
?>

View File

@@ -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
}