Author: bertsch Date: Thu Oct 29 15:03:15 2009 New Revision: 1408 Log: Make pisabeacon send to correct broadcast address send by default. Modified: trunk/openwrt/package/pisa/files/pisabeacon.init Modified: trunk/openwrt/package/pisa/files/pisabeacon.init ============================================================================== --- trunk/openwrt/package/pisa/files/pisabeacon.init Thu Oct 29 14:56:24 2009 (r1407) +++ trunk/openwrt/package/pisa/files/pisabeacon.init Thu Oct 29 15:03:15 2009 (r1408) @@ -5,8 +5,11 @@ START=66 STOP=66 -GEOID=$(ifconfig | grep eth1 -A 1 | grep 'inet addr' | cut -d: -f 2| cut -d" " -f 1 | cut -d. -f4) -PISABEACON_OPTS="-bd 192.168.8.255 -g "$GEOID +NET=$(ifconfig | grep eth1 -A 1 | grep 'inet addr' | cut -c 21- | +awk '{print $1}' | cut -d. -f 1-3) +GEOID=$(ifconfig | grep eth1 -A 1 | grep 'inet addr' | cut -c 21- | +awk '{print $1}' | cut -d. -f 4) +PISABEACON_OPTS="-bd $NET.255 -g "$GEOID start() { echo -n "Starting pisabeacon with geoid" $GEOID