Hello janui,
thanks for the reply. Unfortunately this is not a mounting issue. The NAS does not boot when launching the RPI, however it boots when manually sending the wol request in the ssh console.
The problem seems to be the following: My router which is running the DHCP server is not the fastest one. It takes a few seconds until IP adresses are assigned to the clients (even though the IP is always the same, static IPs are defined for NAS and RPI in the router's DHCP configuration).
When I add a sleep command before the wol request
57 // wake on lan NAS
58 sleep(60);
59 sysCmd('wol 00:11:32:3B:2C:D0');
the WOL request works. But of course boot time is delayed. I will try to find the minimum possible sleep time...
A more elegant way would be to check if an IP adress is assigned before the WOL request. Something like this:
continue = false
do {
sleep(1)
if (IP assigned) {
sysCmd('wol 00:11:32:3B:2C:D0');
continue = true;
}
} while (continue==false);
I have little php experience though...what would be the best way to check the IP assignment?
Best regards
Chris