I would like to wake up my NAS when my RuneAudio Raspberry boots.
What I did so far:
- installed wol on RPI
- wake up NAS from commanline works:
- Code: Select all
=============== RuneOS distribution ===============
____ _ _ _
| _ \ _ _ _ __ ___ / \ _ _ __| (_) ___
| |_) | | | | '_ \ / _ \ / _ \| | | |/ _` | |/ _ \
| _ <| |_| | | | | __// ___ \ |_| | (_| | | (_) |
|_| \_\\__,_|_| |_|\___/_/ \_\__,_|\__,_|_|\___/
================ www.runeaudio.com ================
RuneOs: Experimental Beta 0.5 20180903
RuneUI: 0.5b (gearhead)
Hw-env: RaspberryPi 2 / 3
root@runeaudio(rw):~# wol 00:11:32:3B:2C:D0
Waking up 00:11:32:3B:2C:D0...
root@runeaudio(rw):~# ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data.
64 bytes from 192.168.1.101: icmp_seq=1 ttl=64 time=0.829 ms
64 bytes from 192.168.1.101: icmp_seq=2 ttl=64 time=0.387 ms
^C
--- 192.168.1.101 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1068ms
rtt min/avg/max/mdev = 0.387/0.608/0.829/0.221 ms
root@runeaudio(rw):~#
- added command to /var/www/command/rune_SY_wkr as follows (see line 58):
- Code: Select all
...
53 // Connect to Redis backend
54 $redis = new Redis();
55 $redis->connect('/run/redis.sock');
56
57 // wake on lan NAS
58 sysCmd('wol 00:11:32:3B:2C:D0');
59
60 // if os updates are needed
61 if (file_exists('/srv/http/command/update_os.php')) {
62 include '/srv/http/command/update_os.php';
63 updateOS($redis);
64 }
...
Unfortunately the NAS does not boot when booting the RPI....any hints what I might do wrong?
Thank you in advance. Here is my complete debug info: https://pastebin.com/85RC0Wqw
Best
Chris