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

version 1.3, 2012/10/12 08:22:45 version 1.4, 2017/02/13 16:52:47
Line 2 Line 2
   
 IFACE="wlan0"  IFACE="wlan0"
 WIFIDEV="ath0"  WIFIDEV="ath0"
   CLONEOPTS=""
   
 REGDOMAIN=""  REGDOMAIN=""
 COUNTRY=""  COUNTRY=""
Line 13  WIFIOPTS="-bgscan" Line 14  WIFIOPTS="-bgscan"
   
 WPAPASS="wpa_go"  WPAPASS="wpa_go"
   
OPT=""OPTS=""
 IP="172.31.1.1/30"  IP="172.31.1.1/30"
   IP6=""
   
 [ -r /etc/rc.wifi ] && . /etc/rc.wifi  [ -r /etc/rc.wifi ] && . /etc/rc.wifi
   
   [ -z "$IFACE" -o -z "$WIFIDEV" ] && exit
   
 echo "Config wireless AP (WPA) interface $IFACE ..."  echo "Config wireless AP (WPA) interface $IFACE ..."
   
ifconfig $IFACE create wlandev $WIFIDEV wlanmode hostapifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode hostap || 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
 if [ -n "$WIFIOPTS" ]; then
         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
 mkhostconf $IFACE wpa "$WPAPASS"  mkhostconf $IFACE wpa "$WPAPASS"
if [ -n "$IP" ]; then
ifconfig $IFACE ssid $SSID        ifconfig $IFACE inet $IP
ifconfig $IFACE inet ${IP} ${OPT} upfi
 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.3  
changed lines
  Added in v.1.4


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