Portál AbcLinuxu, 20. července 2025 10:17
@reboot etherwake 00:11:32:13:xx:xxjen premyslim, proc ten WOL nefunguje? Kdyz to spustim manualne, tak probehne, samozrejme poustim pod rootem. Tohle mi v pohode projde. Poradite, jak nejlepe debugovat? Diky
@reboot echo "hi" > /home/user/reboot.txt 2>&1 #test
root@router:/# wol -v -i 192.168.1.255 00:26:18:f3:96:60 Waking up 00:26:18:f3:96:60 with 192.168.1.255:40000...Funguje a htpc se probudí a
root@router:/# wol -v 00:26:18:f3:96:60 Waking up 00:26:18:f3:96:60 with 255.255.255.255:40000...Nefunguje a htpc se neprobudí! Přitom oba pakety odejdou přes správné rozhraní.
/* * wol - wake on lan client * * main program * * $Id: wol.c,v 1.18 2004/04/18 11:42:11 wol Exp $ * * Copyright (C) 2000,2001,2002,2003,2004 Thomas Krennwallner <krennwallner@aon.at> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. */wol S etherwakem to nemá nic společného - možná nějaká část kodu nevím.
iface eth0 inet static . . . up /usr/sbin/etherwake ...akurat ze sa to bude spustat stale po restarte siete...
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.