Changeset 15329


Ignore:
Timestamp:
2009-04-21T20:48:54+02:00 (8 years ago)
Author:
nbd
Message:

atheros: add default uci configuration for ICPlus IP175C

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/base-files/etc/uci-defaults/network

    r14981 r15329  
    11#!/bin/sh 
    22if [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \ 
     3     -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -o \ 
    34     -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ]; then 
    45        uci batch <<EOF 
     
    78set network.wan.ifname=eth0.2 
    89set network.wan.proto=dhcp 
    9 commit network 
    1010EOF 
    1111fi 
     12 
     13if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" ]; then 
     14        uci batch <<EOF 
     15set network.eth0=switch 
     16set network.eth0.reset=1 
     17set network.eth0.enable_vlan=1 
     18set network.eth0_1=switch_vlan 
     19set network.eth0_1.device=eth0 
     20set network.eth0_1.vlan=1 
     21set network.eth0_1.ports="0 1 2 3 5t" 
     22set network.eth0_2=switch_vlan 
     23set network.eth0_2.device=eth0 
     24set network.eth0_2.vlan=2 
     25set network.eth0_2.ports="4 5t" 
     26EOF 
     27fi 
     28 
     29uci commit network 
Note: See TracChangeset for help on using the changeset viewer.