To have a new field called “MAC Adress” in “new drive > advanced options”.
When this field is completed
- and we try to read a file from the NAS
- and the NAS is turned off,
=> wake up the NAS with etherwake.
In pseudo-code :
if FILE-PATH.hasRoot(NAS-DIR-ROOT) and !isFile (FILE-PATH) etherwake MAC-ADRESS display new window "NAS Boot" while !isFile (FILE-PATH) sleep 2 sec. end hide window end read FILE-PATH