Use preconfigured files rather than uci-defaults.

Signed-off-by: Philip Prindeville <phil...@redfish-solutions.com>
Index: target/linux/x86/geos/base-files/etc/uci-defaults/ppp
===================================================================
--- target/linux/x86/geos/base-files/etc/uci-defaults/ppp       (revision 27156)
+++ target/linux/x86/geos/base-files/etc/uci-defaults/ppp       (working copy)
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-uci batch <<__EOF__
-
-delete network.wan
-
-set network.wan=interface
-set network.wan.proto='pppoa'
-set network.wan.atmdev=0
-set network.wan.card=0
-set network.wan.vpi=0
-set network.wan.vci=32
-set network.wan.encaps='vc'
-set network.wan.username='usern...@myisp.net'
-set network.wan.password='password'
-set network.wan.keepalive=3
-set network.wan.defaultroute=1
-set network.wan.peerdns=1
-set network.wan.pppd_options='kdebug 1 debug noccp'
-set network.wan.auto=1
-
-commit network
-__EOF__
Index: target/linux/x86/geos/base-files/etc/uci-defaults/network
===================================================================
--- target/linux/x86/geos/base-files/etc/uci-defaults/network   (revision 27156)
+++ target/linux/x86/geos/base-files/etc/uci-defaults/network   (working copy)
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-uci batch <<__EOF__
-
-delete network.lan
-
-set network.lan=interface
-set network.lan.type=bridge
-set network.lan.ifname="eth0 eth1"
-set network.lan.proto=static
-set network.lan.ipaddr="192.168.1.1"
-set network.lan.netmask="255.255.255.0"
-set network.lan.nat=1
-
-commit network
-__EOF__
Index: target/linux/x86/geos/base-files/etc/config/network
===================================================================
--- target/linux/x86/geos/base-files/etc/config/network (revision 0)
+++ target/linux/x86/geos/base-files/etc/config/network (revision 0)
@@ -0,0 +1,44 @@
+# Copyright (C) 2011 OpenWrt.org
+
+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 eth1"
+       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 atmdev   0
+       option vpi      0
+       option vci      35
+       option encaps   llc
+       option payload  bridged
+       option sendsize 2040
+
+config interface wan
+       option proto    dhcp
+       option ifname   nas0
+       # clone your eth0 address here
+       # option macaddr '00:0A:FA:22:00:80'
+
+# 2nd interface on Geos2
+#config interface wan
+#      option proto    pppoa
+#      option atmdev   1
+#      option vpi      8
+#      option vci      32
+#      option encaps   vc
+#      option username 'usern...@myisp.net'
+#      option password 'password'
+#      option keepalive        3
+#      option defaultroute     1
+#      option peerdns  1
+#      option pppd_options     'kdebug 1 debug noccp'
+
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to