X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Fetc%2Finit.d%2Fipmiwake;h=8f2da33a5747d6c2dfe53819f1d6f2f4e67e16cd;hb=HEAD;hp=541f363d4d83d38393e3b7bb0dbff0190daa11b0;hpb=aa1a77f38ec5c946f83373ed76759cbc70cf17b5;p=debian6500.git diff --git a/master/etc/init.d/ipmiwake b/master/etc/init.d/ipmiwake index 541f363..8f2da33 100755 --- a/master/etc/init.d/ipmiwake +++ b/master/etc/init.d/ipmiwake @@ -33,10 +33,10 @@ do_action () { log_action_msg "Send IPMI boot $ACTION command" - ip addr add 10.133.25.1/24 dev eth0 + ip addr add 10.133.29.1/24 dev eth0 for mac in $(awk '{sub(/#.*/, "")} /host\s+trc[0-9]/ && ! /-rf/ { gsub(/[;{}]/, " "); print $5}' $DHCPCONF); do - ipmi=$(awk '{sub(/#.*/, "")} /'$mac'/ {print}' $DHCPCONF | sed 's/.* [0-9.]*\.\([0-9][0-9]*\)[^0-9].*/10.133.25.\1/') + ipmi=$(awk '{sub(/#.*/, "")} /'$mac'/ {print}' $DHCPCONF | sed 's/.* [0-9.]*\.\([0-9][0-9]*\)[^0-9].*/10.133.29.\1/') host=$(awk '{sub(/#.*/, "")} /'$mac'/ {gsub(/[{}]/, " "); print $2}' $DHCPCONF) log_action_msg "Wake-up $host (IPMI boot $ACTION $ipmi)" ipmipower --session-timeout=$TIMEOUT -h $ipmi -u ADMIN -p ADMIN --$ACTION & @@ -44,7 +44,7 @@ do_action () { wait - ip addr del 10.133.25.1/24 dev eth0 + ip addr del 10.133.29.1/24 dev eth0 } case "$1" in