It is currently Thu Mar 21, 2019 7:25 pm
All times are UTC + 8 hours

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.

Run script on resume from sleep state

Postby Stefan » Fri May 18, 2018 3:39 am

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
Stefan
 
Posts: 1
Joined: Thu Jan 12, 2017 1:35 am

Return to [Official] For AS-60X Series

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 3 guests