Diff for /elwix/config/etc/default/rc.d/011.tdma_base.stop between versions 1.2 and 1.3

version 1.2, 2011/11/02 09:51:32 version 1.3, 2017/02/13 16:52:47
Line 2 Line 2
   
 IFACE="wlan0"  IFACE="wlan0"
 WIFIDEV="ath0"  WIFIDEV="ath0"
   CLONEOPTS=""
   
 REGDOMAIN=""  REGDOMAIN=""
 COUNTRY=""  COUNTRY=""
Line 11  CHAN="36:a" Line 12  CHAN="36:a"
 BINT="100"  BINT="100"
 WIFIOPTS="tdmaslot 0 anywhere"  WIFIOPTS="tdmaslot 0 anywhere"
   
OPT=""OPTS=""
 IP="172.31.1.1/30"  IP="172.31.1.1/30"
   IP6=""
   
   [ -z "$IFACE" -o -z "$WIFIDEV" ] && exit
   
 echo "Config wireless TDMA (Base) interface $IFACE ..."  echo "Config wireless TDMA (Base) interface $IFACE ..."
   
ifconfig $IFACE create wlandev $WIFIDEV wlanmode tdmaifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode tdma || exit
#ifconfig $IFACE regdomain $REGDOMAINif [ -n "$REGDOMAIN" ]; then
#ifconfig $IFACE country $COUNTRY        ifconfig $IFACE regdomain $REGDOMAIN
ifconfig $IFACE $WIFIOPTSfi
ifconfig $IFACE bintval $BINTif [ -n "$COUNTRY" ]; then
ifconfig $IFACE channel $CHAN        ifconfig $IFACE country $COUNTRY
fi
ifconfig $IFACE ssid $SSIDif [ -n "$WIFIOPTS" ]; then
ifconfig $IFACE inet ${IP} ${OPT} up        ifconfig $IFACE $WIFIOPTS
 fi
 if [ -n "$BINT" ]; then
         ifconfig $IFACE bintval $BINT
 fi
 if [ -n "$CHAN" ]; then
         ifconfig $IFACE channel $CHAN
 fi
 if [ -n "$SSID" ]; then
         ifconfig $IFACE ssid $SSID
 fi
 if [ -n "$IP" ]; then
         ifconfig $IFACE inet $IP
 fi
 if [ -n "$IP6" ]; then
         ifconfig $IFACE inet6 $IP6
 fi
 ifconfig $IFACE $OPTS up
   
 [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE  [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
   

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>