Changeset 94
- Timestamp:
- 11/17/05 15:29:06 (3 years ago)
- Files:
-
- trunk/server/admin/wake (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/server/admin/wake
r83 r94 48 48 } 49 49 50 # default broadcast addr 51 IP=255.255.255.255 50 52 51 IP=255.255.255.255 53 # get a broadcast list from the webmin configuration 54 IPB=`grep wake_ip /etc/webmin/lbs/config|cut -d '=' -f 2|tr , ' '` 55 if [ "$IPB" ]; then 56 IP="$IPB" 57 fi 52 58 53 59 while getopts b:h? opt; do … … 65 71 66 72 # send 67 for m in $@73 for ipb in $IP 68 74 do 69 # notify the menu builder that a WOL was attempted 75 for m in $@ 76 do 77 # notify the menu builder that a WOL was attempted 70 78 sm=`echo $m|tr -d :` 71 79 touch $BASEDIR/images/$sm/wol … … 76 84 echo "Burst $i..." 77 85 wol -v $m 78 wol -v $m -i $ IP86 wol -v $m -i $ipb 79 87 wol -v $m -p 80 80 wol -v $m -i $ IP-p 8088 wol -v $m -i $ipb -p 80 81 89 wol -v $m -p 8080 82 wol -v $m -i $ IP-p 808090 wol -v $m -i $ipb -p 8080 83 91 wol -v $m -p 1234 84 wol -v $m -i $ IP-p 123492 wol -v $m -i $ipb -p 1234 85 93 wol -v $m -p 32767 86 wol -v $m -i $ IP-p 3276794 wol -v $m -i $ipb -p 32767 87 95 done 88 96 sleep 1 97 done 89 98 done
