X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Fetc%2Finit.d%2Fetherwake;h=3e011ffd0c7f3fa885a3e3135831257b74f0afb6;hb=aa1a77f38ec5c946f83373ed76759cbc70cf17b5;hp=1fa7481e7497275ef3dcc87fcf7619c0fcdfb73f;hpb=2751033a79ef82ea090624ede38dc8aeccd41727;p=debian6500.git diff --git a/master/etc/init.d/etherwake b/master/etc/init.d/etherwake index 1fa7481..3e011ff 100755 --- a/master/etc/init.d/etherwake +++ b/master/etc/init.d/etherwake @@ -47,7 +47,7 @@ do_start () { n=0 while [ $NB_TRY -gt 0 ]; do - for mac in $(awk '{sub(/#.*/, "")} /trc[0-9]/ {gsub(/[;{}]/, " "); print $5}' $DHCPCONF); do + for mac in $(awk '{sub(/#.*/, "")} /host\s+trc[0-9]/ {gsub(/[;{}]/, " "); print $5}' $DHCPCONF); do host=$(awk '{sub(/#.*/, "")} /'$mac'/ {gsub(/[{}]/, " "); print $2}' $DHCPCONF) log_action_msg "Wake-up $host (EtherWake $mac)"