diff -ru 0.7.1.3/bin/thinclient 0.7.1.5/bin/thinclient --- 0.7.1.3/bin/thinclient 2007-03-23 21:02:18.000000000 +0900 +++ 0.7.1.5/bin/thinclient 2007-08-03 00:48:57.000000000 +0900 @@ -28,11 +28,17 @@ MODE=$1 +[ `grep thinclient /etc/crontabs/root|wc -l` -eq 0 ] && { +FIRST=$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 30)) +LAST=$( expr $FIRST + 30;) +echo "$FIRST,$LAST * * * * /bin/thinclient cron" >> /etc/crontabs/root +} + rm -f /tmp/.thinclient.sh case "$1" in cron) - sleep "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 3600))" + sleep "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60))" echo "mode='$MODE' wlmac='$WLMAC' mac='$ETMAC' fonrev='$FONREV' firmware='$FIRMWARE' chillver='$CHILLVER' thclver='$THCLVER' device='$DEVICE'" | ssh -T ${PORT:+ -p $PORT}${KEY:+ -i $KEY} "${USER}@${SERVER}" > /tmp/.thinclient.sh ;; start) diff -ru 0.7.1.3/etc/banner 0.7.1.5/etc/banner --- 0.7.1.3/etc/banner 2007-03-23 21:02:19.000000000 +0900 +++ 0.7.1.5/etc/banner 2007-07-24 23:07:20.000000000 +0900 @@ -4,7 +4,7 @@ | | |_______||__| |__| |___| - Fonera Firmware (Version 0.7.1 rev 3) ------------- + Fonera Firmware (Version 0.7.1 rev 5) ------------- * * Based on OpenWrt - http://openwrt.org * Powered by FON - http://www.fon.com diff -ru 0.7.1.3/etc/fon_revision 0.7.1.5/etc/fon_revision --- 0.7.1.3/etc/fon_revision 2007-03-23 21:02:19.000000000 +0900 +++ 0.7.1.5/etc/fon_revision 2007-07-24 23:07:06.000000000 +0900 @@ -1 +1 @@ -3 +5 diff -ru 0.7.1.3/etc/init.d/N50chillispot 0.7.1.5/etc/init.d/N50chillispot --- 0.7.1.3/etc/init.d/N50chillispot 2006-09-01 01:29:25.000000000 +0900 +++ 0.7.1.5/etc/init.d/N50chillispot 2007-07-19 01:04:01.000000000 +0900 @@ -6,7 +6,7 @@ PID_F=/var/run/chilli.pid PID_LOOP_F=/var/run/chilli_loop.pid LOG_LOOP_F=/var/log/chilli_loop.log -WANIP="$(ifconfig "$wan_ifname" | grep inet | awk -F'[: ]+' '{print $4}')" +LANIP="$(ifconfig "$lan_ifname" | grep inet | awk -F'[: ]+' '{print $4}')" MAC=$(ifconfig wifi0 | head -n1 | awk '{print $5}'|sed s/:/-/g) MAC=${MAC:-fon} LOOP=true @@ -93,8 +93,8 @@ /sbin/insmod tun >/dev/null 2>&1 ifconfig $wifi_ifname 0.0.0.0 # deconfigure the wifi interface /usr/sbin/chilli \ - --dns1="$WANIP" \ - --dns2="$WANIP" \ + --dns1="$LANIP" \ + --dns2="$LANIP" \ --radiusnasid="$MAC" \ --dhcpif $wifi_ifname \ --pidfile=$PID_F @@ -113,8 +113,8 @@ /sbin/insmod tun >/dev/null 2>&1 ifconfig $wifi_ifname 0.0.0.0 # deconfigure the wifi interface /usr/sbin/chilli \ - --dns1="$WANIP" \ - --dns2="$WANIP" \ + --dns1="$LANIP" \ + --dns2="$LANIP" \ --radiusnasid="$MAC" \ --dhcpif $wifi_ifname \ --pidfile=$PID_F