[Chilli] Assign ip to HS_LANIF interface

Giovanni Bezicheri giovanni.bezicheri at nethesis.it
Tue Nov 4 16:12:02 UTC 2014


The coova chilli init script removes the ip address from HS_LANIF interface.
Anyone experiments any side effects by assigning an ip to the HS_LANIF 
interface (commenting "ifconfig $HS_LANIF 0.0.0.0" line)? Is that a good 
practice?
> start() {
>      echo -n $"Starting $prog: "
>
>      check_required
>
>      /sbin/modprobe tun >/dev/null 2>&1
>      echo 1 > /proc/sys/net/ipv4/ip_forward
>
>      [ -e /dev/net/tun ] || {
>          (cd /dev; mkdir net; cd net; mknod tun c 10 200)
>      }
>
>      writeconfig
>      radiusconfig
>
>      test ${HS_ADMINTERVAL:-0} -gt 0 && {
>          (crontab -l 2>&- | grep -v $0
>          echo "*/$HS_ADMINTERVAL * * * * $0 radconfig") | crontab - 2>&-
>      }
>
>      ifconfig $HS_LANIF 0.0.0.0
>
>      daemon $exec -c $CONFIG
>      retval=$?
>      echo
>      [ $retval -eq 0 ] && touch $lockfile
>      return $retval
> }


More information about the Chilli mailing list