From: blogic Date: Tue, 15 Nov 2011 18:21:00 +0000 (+0000) Subject: lantiq: add runtime generation of /etc/config/network X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/5df57010b8afe0ec77275ba1d04f65a09ef2c2f2?ds=sidebyside lantiq: add runtime generation of /etc/config/network git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29161 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/lantiq/base-files.mk b/target/linux/lantiq/base-files.mk new file mode 100644 index 000000000..d6682bd38 --- /dev/null +++ b/target/linux/lantiq/base-files.mk @@ -0,0 +1,5 @@ +define Package/base-files/install-target + rm -f $(1)/etc/config/network +endef + + diff --git a/target/linux/lantiq/base-files/etc/config/network b/target/linux/lantiq/base-files/etc/config/network deleted file mode 100644 index 183e6bf34..000000000 --- a/target/linux/lantiq/base-files/etc/config/network +++ /dev/null @@ -1,26 +0,0 @@ -config interface loopback - option ifname lo - option proto static - option ipaddr 127.0.0.1 - option netmask 255.0.0.0 - -config interface lan - option ifname eth0 - option type bridge - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - -config atm-bridge - option unit 0 - option encaps llc - option vpi 1 - option vci 32 - option payload bridged # some ISPs need this set to 'routed' - -config interface wan - option ifname nas0 - option proto pppoe - option username "" - option password "" - option unit 0 diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/network b/target/linux/lantiq/base-files/etc/uci-defaults/network new file mode 100755 index 000000000..f9a723754 --- /dev/null +++ b/target/linux/lantiq/base-files/etc/uci-defaults/network @@ -0,0 +1,126 @@ +#!/bin/sh +# +# Copyright (C) 2011 OpenWrt.org +# + +set_interface_loopback() { + uci batch <