Hello,
With my NAS Synology, i use this script in a sceduled task. With OMV is not possible to use directly this code as a Synology Nas.
I have to create a script sh and launch it by a scheduled tasks. But I can't do it so i need you.
Thanks for your help.
Code
ping 192.168.x.xx -c5 -q
if [ $? != 1 ]
then
echo "Ubuntu ON LINE"
else
echo "Ubuntu OFF LINE"
TITLE="UBUNTU HS"
APP_TOKEN="xxxxxxxx"
USER_TOKEN="xxxxxxxx"
MESSAGE="Ubuntu HS"
curl -s -F "token=$APP_TOKEN" \
-F "user=$USER_TOKEN" \
-F "title=$TITLE" \
-F "message=$MESSAGE" https://api.pushover.net/1/messages.json
synonet --wake C0:3F:D5:64:CA:1B eth0
fi
Alles anzeigen