# This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /usr/share/doc/openrc/net.example and save your configuration # in /etc/conf.d/net (this file :]!). #config_eth0=( "dhcp" ) dhcpcd_eth0="-t 15" modules="!wpa_supplicant" config_wlan0=( "dhcp" ) dhcpcd_wlan0="-t 25" #config_eth0=( "192.168.1.107 netmask 255.255.255.0" ) #essid_wlan0="SPYDER" # I think why my wireless always hangs is that it's bouncing around APs # with the same ESSID mac_essid_000f66bc3db9="SPYDER" preferred_aps=( "SPYDER" "OSU_PUB" ) preup() { if [ "${IFACE}" = "wlan0" ]; then killall dhcpcd 2>/dev/null lsmod | grep -q iwl4965 && modprobe -r iwl4965 sleep 1 lsmod | grep -v -q iwl4965 && modprobe iwl4965 fi # Remember to return 0 on success return 0 } postdown() { if [ "${IFACE}" = "wlan0" ]; then lsmod | grep -q iwl4965 && modprobe -r iwl4965 fi }