Changeset 47745


Ignore:
Timestamp:
2015-12-04T00:13:04+01:00 (2 years ago)
Author:
jow
Message:

kirkwood: add missing board_config_flush(), remove dead code

Signed-off-by: Jo-Philipp Wich <jow@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/kirkwood/base-files/etc/board.d/02_network

    r47735 r47745  
    44# 
    55 
    6 [ -e /etc/config/network ] && exit 0 
    7  
    8 touch /etc/config/network 
    9  
    10 set_lan_dhcp() { 
    11         local ifname=$1 
    12         uci batch <<EOF 
    13 set network.lan='interface' 
    14 set network.lan.ifname='$ifname' 
    15 set network.lan.proto='dhcp' 
    16 set network.lan6='interface' 
    17 set network.lan6.ifname='@lan' 
    18 set network.lan6.proto='dhcpv6' 
    19 set network.lan6.reqprefix='no' 
    20 EOF 
    21 } 
    22  
    236. /lib/functions/uci-defaults-new.sh 
    247. /lib/kirkwood.sh 
    258 
    269board_config_update 
    27  
    28 ucidef_set_interface_loopback 
    2910 
    3011board=$(kirkwood_board_name) 
     
    6041esac 
    6142 
    62 uci commit network 
     43board_config_flush 
    6344 
    6445exit 0 
Note: See TracChangeset for help on using the changeset viewer.