Enable alpine base image compatibility

This commit is contained in:
Jendrik Weise
2023-08-11 13:48:51 +02:00
parent c7dea757b9
commit d0868082e4
2 changed files with 27 additions and 5 deletions
+9 -1
View File
@@ -22,7 +22,15 @@ then
if [ ! -z $WOL_NATIVE_PORT ]; then
WOL_OPTIONS="$WOL_OPTIONS -p $WOL_NATIVE_PORT"
fi
wakeonlan $WOL_OPTIONS $mac
# Alpine
if [ -f /sbin/apk ]; then
wol $WOL_OPTIONS $mac
fi
# Ubuntu
if [ -f /usr/bin/apt ]; then
wakeonlan $WOL_OPTIONS $mac
fi
#wakeonlan -i $RFFMPEG_HOST $mac
echo "waiting $WOL_WAIT seconds for $RFFMPEG_HOST to wake"
sleep $WOL_WAIT
fi