Changeset 7076


Ignore:
Timestamp:
2007-05-01T23:53:32+02:00 (10 years ago)
Author:
mbm
Message:

various patches to add support for ppp over evdo or character devices

Location:
trunk/package
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/network/config.sh

    r6819 r7076  
    7676        # the bridge interface wouldn't exist. 
    7777        [ "$iface" = "br-$config" ] && return 0; 
     78 
     79        [ -f "$iface" ] && return 0; 
    7880         
    7981        ifconfig "$iface" 2>/dev/null >/dev/null && { 
  • trunk/package/kernel/modules/usb.mk

    r6998 r7076  
    171171$(eval $(call KernelPackage,usb-serial)) 
    172172 
     173define KernelPackage/usb-serial-airprime 
     174  TITLE:=Support for Airprime (EVDO)  
     175  DESCRIPTION:=Kernel support for Airprime (EVDO)  
     176  DEPENDS:=kmod-usb-serial 
     177  SUBMENU:=$(USBMENU) 
     178  KCONFIG:=$(CONFIG_USB_SERIAL_AIRPRIME) 
     179  FILES:=$(LINUX_DIR)/drivers/usb/serial/airprime.$(LINUX_KMOD_SUFFIX) 
     180  AUTOLOAD:=$(call AutoLoad,65,airprime) 
     181endef 
     182$(eval $(call KernelPackage,usb-serial-airprime)) 
    173183 
    174184define KernelPackage/usb-serial-belkin 
  • trunk/package/ppp/files/ppp.sh

    r6501 r7076  
    2222        config_get password "$cfg" password 
    2323        config_get keepalive "$cfg" keepalive 
     24 
     25        config_get connect "$cfg" connect 
     26        config_get disconnect "$cfg" disconnect 
     27 
    2428        interval="${keepalive##*[, ]}" 
    2529        [ "$interval" != "$keepalive" ] || interval=5 
     
    3539                ${username:+user "$username" password "$password"} \ 
    3640                linkname "$cfg" \ 
    37                 ipparam "$cfg" 
     41                ipparam "$cfg" \ 
     42                ${connect:+connect "$connect"} \ 
     43                ${disconnect:+disconnect "$disconnect"} 
    3844 
    3945        lock -u "/var/lock/ppp-${cfg}" 
    4046} 
     47 
     48setup_interface_ppp() { 
     49        local iface="$1" 
     50        local config="$2" 
     51 
     52        config_get device "$config" device 
     53 
     54        config_get mtu "$cfg" mtu 
     55        mtu=${mtu:-1492} 
     56        start_pppd "$config" \ 
     57                mtu $mtu mru $mtu \ 
     58                "$device" 
     59} 
     60 
Note: See TracChangeset for help on using the changeset viewer.