Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/network

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 274 by niro, Tue Oct 11 11:19:58 2005 UTC revision 275 by niro, Fri Oct 21 15:24:25 2005 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/network,v 1.10 2005-10-11 11:19:58 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/network,v 1.11 2005-10-21 15:24:25 niro Exp $
3    
4  #%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k  #%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k
5  #%start: 20  #%start: 20
# Line 196  config_wireless_wpa() Line 196  config_wireless_wpa()
196   ${WIRELESS_WPA_CONFIG}   ${WIRELESS_WPA_CONFIG}
197   fi   fi
198    
199     # remove old state dir
200     [ -d /var/run/wpa_supplicant ] && rm -rf /var/run/wpa_supplicant
201    
202   # now run the wpa_supplicant dameon   # now run the wpa_supplicant dameon
203   wpa_supplicant -B \   wpa_supplicant -B \
204   -D"${WIRELESS_WPA_DRIVER}" \   -D"${WIRELESS_WPA_DRIVER}" \
# Line 218  setup_wireless_extensions() Line 221  setup_wireless_extensions()
221   return 1   return 1
222   fi   fi
223    
224   echo -e ${COLOREDSTAR}"Setting up wlan-ext for ${COLBLUE}${iface}${COLDEFAULT} ... "   if [[ -n ${WIRELESS_BITRATE} ]] ||
225     [[ -n ${WIRELESS_CHANNEL} ]] ||
226     [[ -n ${WIRELESS_ESSID} ]] ||
227     [[ -n ${WIRELESS_FREQUENCY} ]] ||
228     [[ -n ${WIRELESS_MODE} ]] ||
229     [[ -n ${WIRELESS_NICK} ]] ||
230     [[ -n ${WIRELESS_AUTH_MODE} ]]
231     then
232     echo -e ${COLOREDSTAR}"Setting up wlan-ext for ${COLBLUE}${iface}${COLDEFAULT} ... "
233     fi
234    
235   [[ -n ${WIRELESS_BITRATE} ]] && iwconfig "${iface}" rate "${WIRELESS_BITRATE}"   [[ -n ${WIRELESS_BITRATE} ]] && iwconfig "${iface}" rate "${WIRELESS_BITRATE}"
236   [[ -n ${WIRELESS_CHANNEL} ]] && iwconfig "${iface}" channel "${WIRELESS_CHANNEL}"   [[ -n ${WIRELESS_CHANNEL} ]] && iwconfig "${iface}" channel "${WIRELESS_CHANNEL}"
# Line 267  networking_start() Line 279  networking_start()
279   ${CURS_UP}   ${CURS_UP}
280   ${SET_WWCOL}   ${SET_WWCOL}
281   echo "[DHCP]"   echo "[DHCP]"
282   loadproc ${DHCP_PROG} ${DHCP_START}   loadproc ${DHCP_PROG} ${DHCP_START} "${iface}"
283   ;;   ;;
284   static|STATIC)   static|STATIC)
285   ${CURS_UP}   ${CURS_UP}
# Line 337  networking_stop() Line 349  networking_stop()
349   killall wpa_supplicant   killall wpa_supplicant
350   fi   fi
351   done   done
352    
353   # remove state dir   # remove state dir
354   if [ -d /var/run/wpa_supplicant ]   if [ -d /var/run/wpa_supplicant ]
355   then   then

Legend:
Removed from v.274  
changed lines
  Added in v.275