# This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). config_eth0="192.168.0.2 netmask 255.255.255.0" routes_eth0="default gw 192.168.0.1" dns_servers_eth0="62.148.128.1" modules_wlan0="wpa_supplicant" wpa_supplicant_wlan0="-Dwext" config_wlan0="dhcp" dhcpcd_wlan0="-t 240" config_ppp0="ppp" RC_NEED_ppp0="f3507g" link_ppp0="/dev/ttyACM0" username_ppp0="nwgsm" password_ppp0="guest" pppd_ppp0=( "debug" "noauth" "defaultroute" "usepeerdns" "noipdefault" "lock" "115200" "modem crtscts" "persist" "maxfail 0" ) phone_number_ppp0="*99#" chat_ppp0=( 'TIMEOUT' '10' '' 'AT+CGDCONT=1,"IP","internet"' 'OK' 'ATDT\T' 'TIMEOUT' '60' 'CONNECT' '' 'TIMEOUT' '5' '~--' '' ) preup() { if [[ ${IFACE} == "wlan0" ]] then if [ `cat /sys/devices/platform/thinkpad_acpi/hotkey_radio_sw` == "0" ] then ewarn "ThinkPad wireless is disabled" return 1 fi fi # if [[ ${IFACE} == "eth0" ]] # then # if [[ -z `ethtool eth0 | grep 'Link detected: yes'` ]] # then # ewarn "Ethernet cable in unpluged" # return 1 # fi # fi return 0 }