Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Copyright (C) 2014-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
uci show network | grep "\.vlan=0"
|
||||
[ $? -ne 0 ] && exit 0
|
||||
|
||||
logger -t network "network config is invalid, creating new one"
|
||||
|
||||
lan_proto="$(uci -q get network.lan.proto)"
|
||||
lan_ipaddr="$(uci -q get network.lan.ipaddr)"
|
||||
lan_netmask="$(uci -q get network.lan.netmask)"
|
||||
wan_proto="$(uci -q get network.wan.proto)"
|
||||
wan_ipaddr="$(uci -q get network.wan.ipaddr)"
|
||||
wan_netmask="$(uci -q get network.wan.netmask)"
|
||||
|
||||
echo "" > /etc/config/network
|
||||
config_generate
|
||||
|
||||
uci set network.lan.proto=$lan_proto
|
||||
uci set network.lan.ipaddr=$lan_ipaddr
|
||||
uci set network.lan.netmask=$lan_netmask
|
||||
uci set network.wan.proto=$wan_proto
|
||||
uci set network.wan.ipaddr=$wan_ipaddr
|
||||
uci set network.wan.netmask=$wan_netmask
|
||||
uci commit network
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
#
|
||||
|
||||
mtd fixtrx firmware
|
||||
Reference in New Issue
Block a user