Run script on resume from sleep state

This is where you can find the latest ADM official release. Feel free to discuss any questions regarding it here.

Moderator: Lillian.W@AST

Post Reply
Stefan
Posts: 1
youtube meble na wymiar Warszawa
Joined: Thu Jan 12, 2017 1:35 am

Run script on resume from sleep state

Post by Stefan »

Hi,

I know how to run a script at boot time.

Just linking it in /usr/local/etc/init.d/ identical to /volume1/.@plugins/etc/init.d
works like a charme.

My problem is I need to run a script after the NAS resumed from sleep state.

Can anybody give me a hint how to achieve this?

Precisely may script adds a special hostname/ip to /etc/hosts which gets overwritten each time the NAS
boots or resume from sleep state.

Any other ideas how to persist additional entries in /etc/hosts would be welcome too.

Thanks,
Stefan
Post Reply

Return to “[Official] For AS-60X Series”