Changeset 199

Show
Ignore:
Timestamp:
08/10/07 17:37:55 (1 year ago)
Author:
Crazor
Message:

0.7.1r5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fon/trunk/bin/thinclient

    r84 r199  
    2929MODE=$1 
    3030 
     31[ `grep thinclient /etc/crontabs/root|wc -l` -eq 0 ] && { 
     32FIRST=$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 30)) 
     33LAST=$( expr $FIRST + 30;) 
     34echo  "$FIRST,$LAST * * * * /bin/thinclient cron" >> /etc/crontabs/root 
     35} 
     36 
    3137rm -f /tmp/.thinclient.sh 
    3238 
    3339case "$1" in 
    3440    cron) 
    35                 sleep "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 3600))" 
     41                sleep "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60))" 
    3642                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 
    3743                ;; 
  • fon/trunk/etc/banner

    r84 r199  
    55|___| 
    66 
    7  Fonera Firmware (Version 0.7.1 rev 3) ------------- 
     7 Fonera Firmware (Version 0.7.1 rev 5) ------------- 
    88  *  
    99  * Based on OpenWrt - http://openwrt.org 
  • fon/trunk/etc/fon_revision

    r84 r199  
    1 
     1
  • fon/trunk/etc/init.d/N50chillispot

    r77 r199  
    77PID_LOOP_F=/var/run/chilli_loop.pid 
    88LOG_LOOP_F=/var/log/chilli_loop.log 
    9 WANIP="$(ifconfig "$wan_ifname" | grep inet | awk -F'[: ]+' '{print $4}')" 
     9LANIP="$(ifconfig "$lan_ifname" | grep inet | awk -F'[: ]+' '{print $4}')" 
    1010MAC=$(ifconfig wifi0 | head -n1 | awk '{print $5}'|sed s/:/-/g) 
    1111MAC=${MAC:-fon} 
     
    9494                ifconfig $wifi_ifname 0.0.0.0 # deconfigure the wifi interface 
    9595                /usr/sbin/chilli \ 
    96                         --dns1="$WANIP" \ 
    97                         --dns2="$WANIP" \ 
     96                        --dns1="$LANIP" \ 
     97                        --dns2="$LANIP" \ 
    9898                        --radiusnasid="$MAC" \ 
    9999                        --dhcpif $wifi_ifname \ 
     
    114114                ifconfig $wifi_ifname 0.0.0.0 # deconfigure the wifi interface 
    115115                /usr/sbin/chilli \ 
    116                         --dns1="$WANIP" \ 
    117                         --dns2="$WANIP" \ 
     116                        --dns1="$LANIP" \ 
     117                        --dns2="$LANIP" \ 
    118118                        --radiusnasid="$MAC" \ 
    119119                        --dhcpif $wifi_ifname \