[OpenWrt-Tickets] [OpenWrt] #1430: compex interface config doesn't start the WAN

OpenWrt openwrt-devel at lists.openwrt.org
Sat Apr 19 16:31:07 CEST 2008


#1430: compex interface config doesn't start the WAN
-------------------------------+--------------------------------------------
 Reporter:  chris at martin.name  |        Owner:  developers
     Type:  defect             |       Status:  reopened  
 Priority:  high               |    Milestone:  Kamikaze  
Component:  base system        |   Resolution:            
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by chris at martin.name):

 Opps sorry - just realised that the copy/past buffer comtained an old copy
 of my modified ifup script.  it should be:
 {{{
 #!/bin/sh
 # Copyright (C) 2006 OpenWrt.org

 #. /sbin/ifdown "$@"
 . /etc/functions.sh

 [ $# = 0 ] && { echo "  $0 <group>"; exit; }
 [ "x$1" = "x-a" ] && {
         config_cb() {
                 [ interface != "$1" -o -z "$2" ] || eval "$0 $2"
        }
        config_load network
        exit
 }

 include /lib/network
 scan_interfaces

 config_get iftype "$1" type
 config_get ifname "$1" device

 for dev in $ifname; do
 logger "setup" $dev $1
         setup_interface "$dev" "$1"
 done
 }}}
 Just to recap..  this prevents the ifup from calling ifdown, this means
 that when the "wan" interface is brought up the "adsl" interface is no
 longer reset.
 I am now working on a mod to ifdown, so that it will detect if the proto
 is pppoe, and not reset the physical interface.

-- 
Ticket URL: <https://dev.openwrt.org/ticket/1430#comment:8>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology


More information about the openwrt-tickets mailing list