Results 1 to 3 of 3
I was wondering if there was a proper solution to makeing use of wake on lan in Ubuntu Karmic.
The solution i used before was startup script..
Code:
#!/bin/bash
while ...
- 01-16-2010 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 53
[SOLVED] Wake On Lan
I was wondering if there was a proper solution to makeing use of wake on lan in Ubuntu Karmic.
The solution i used before was startup script..
The problem there is my system ceases to shutdown properly. because i cant seem to get it to run under run levels 2-5 only; default option is 0-6.Code:#!/bin/bash while [ 6 -lt 9 ]; do wakeonlan -i 192.168.1.3 AA:BB:CC:DD:EE:FF sleep 60 done
but on top of that it seems to break things, mainly VirtualBox. there is a virtualbox-ose startup script in init.d, also a halt and reboot script. im new to Linux, is this related?
so the problem i face now is finding an alternative, because my Buffalo Linkstation NAS requires a magic packet every 1 or 2 minutes or so, so i will need to find a solution that fits the requirements, but that isn't a shell script that runs indefinitely and interferes with my systems normal operations.
Thanks in advance.
- 01-16-2010 #2Linux Newbie
- Join Date
- Dec 2009
- Posts
- 241
The reason your script blocks is easy.
It's an never ending script.
And the init scripts are started one after another.
Meaning, if it isn't the last one many other scripts won't run.
That for I would suggest you use cron to do that.
There you can set that every minute a command shall be executed with a certain user.
- 01-16-2010 #3Just Joined!
- Join Date
- Dec 2009
- Posts
- 53
Thanks man, it works perfectly.
Yeh i thought as much, it's good to have it clarified.It's an never ending script.
And the init scripts are started one after another.
Thanks!


