[solved] WoL command (cron) broken in LEDE/OpenWRT?

Hi,

I can't get the WoL command to work. Command gets executed i can see that in the system log but the pc is not booting. With DD-WRT it is just working fine.

I'm new with cron commands.

DD-WRT and '35 11 * * 0 root /usr/sbin/wol -p 9 -i 192.168.1.255 xx:xx:xx:xx:xx:xx' is working.
OpenWRT and '35 11 * * 0 /usr/bin/wol -h 192.168.1.255 xx:xx:xx:xx:xx:xx #Mo' is not working.
LEDE and '35 11 * * 0 /usr/bin/wol -h 192.168.1.255 xx:xx:xx:xx:xx:xx' is not working.
LEDE and '35 11 * * 0 root /usr/sbin/wol -p 9 -i 192.168.1.255 xx:xx:xx:xx:xx:xx' is not working.
LEDE and '35 11 * * 0 root /usr/bin/wol -p 9 -i 192.168.1.255 xx:xx:xx:xx:xx:xx' is not working.

I hope somebody can help me.
I have TP-Link TL-WR1043ND V1 and TP-Link TL-WR841N(D) V8.

Is there a wol command? Which package you have installed?

You might test with etherwake.

Wol is something standard. https://wiki.openwrt.org/doc/howto/cron bottom of the page

For dd-wrt i found this https://www.howtogeek.com/70084/how-to-schedule-your-computer-to-wake-up-at-specific-times-with-dd-wrt/ check 'Advanced Configuration – Using Cron' and that is just working fine.

Can you tell me if i would use etherwake what the cron command is?
I want to use cron command because with that i can set dates with a time.

I have no clue why but it is working now with '14 14 * * 0 /usr/bin/etherwake -i br-lan -b xx:xx:xx:xx:xx:xx' with '14 14 * * 0 /usr/bin/etherwake -i 192.168.1.255 -b xx:xx:xx:xx:xx:xx' it didnt. (192.168.1.255 is correct)

Wol is not standard in Openwrt/LEDE.
That is a wiki page about "cron", not wol. Wol just happens to be in that cron example.

There is no "wol" command by default in LEDE:

   \  DE    \  /    Reboot (SNAPSHOT, r5017-2cb8f0a4cf)
    \________\/    -----------------------------------------------------------

root@LEDE:~# which wol
root@LEDE:~# wol
-ash: wol: not found
root@LEDE:~#

Great that you got it working by installing the etherwake package.
(I think that there has been a wol package years ago, but that has been deprecated, I think.)

Naturally not, as that syntax is wrong for etherwake, as "-i" means interface:

root@LEDE:~# etherwake
Specify the Ethernet address as 00:11:22:33:44:55.
root@LEDE:~# etherwake -?
etherwake: unrecognized option: ?
usage: ether-wake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55
   Use '-u' to see the complete set of options.

root@LEDE:~# etherwake -u
usage: ether-wake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55

        This program generates and transmits a Wake-On-LAN (WOL)
        "Magic Packet", used for restarting machines that have been
        soft-powered-down (ACPI D3-warm state).
        It currently generates the standard AMD Magic Packet format, with
        an optional password appended.

        The single required parameter is the Ethernet MAC (station) address
        of the machine to wake.
        The MAC address may be found with the 'arp' program while the target
        machine is awake.

        Options:
                -b      Send wake-up packet to the broadcast address.
                -D      Increase the debug level.
                -i ifname       Use interface IFNAME instead of the default 'eth0'.
                -p <pw>         Append the four or six byte password PW to the packet.
                                        A password is only required for a few adapter types.
                                        The password may be specified in ethernet hex format
                                        or dotted decimal (Internet address)
                -p 00:22:44:66:88:aa
                -p 192.168.1.1

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.