Jump to content
XPEnology Community

script at boot for wake on lan


zeratul75

Recommended Posts

Hello

I installed nanoboot 5.0.3.1 in a old notebook, just for testing purpose.

Everything is working fine, but not able to use wake on lan feature.

 

In DSM control panel, under hardware setting, wake on lan is not checked, but I am not able to actually enable it. Infact, if I check it, every time I press "apply" the option returns unchecked.

 

I searched on google a lot, and eventually find the "solution":

by using ethtool in ssh session I can see wake on lan is supported by my nic, but it is disabled. (wake on lan status d).

I launch the command

ethtool -s eth0 wol g

and the status changed to g. after shutting down the nas wake on lan is working.

 

The problem is that at every startup/reboot of the system, It returns to d (disabled) status.......

In DSM there is the possibility to lauch a script created by user, so I did it, and it is actually working. I mean, after manually execute it, by ssh session I can see the status of wake on lan changing from d to g.

But there is no option to make DSM execute it at every system startup; only option to execute one a day, one a week, etc......

 

So basically, I need to insert that simple command (ethtool -s eth0 wol g) at boot scripts. But I have no idea which boot file I need to edit.

I feel very closed to the solution, but unfortunately my linux knowledge is very limited......

Is this the right way to do this? Or is there any config file that DSM lauches at start up, which can be edited by user adding that command?

 

 

Link to comment
Share on other sites

  • Polanskiman changed the title to script at boot for wake on lan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...