Not much to say about that, same as in ar7. Signed-off-by: Daniel Golle <[email protected]>
diff --git a/target/linux/ac49x/base-files/etc/config/network
b/target/linux/ac49x/base-files/etc/config/network
new file mode 100644
index 0000000..9ba0e6d
--- /dev/null
+++ b/target/linux/ac49x/base-files/etc/config/network
@@ -0,0 +1,42 @@
+# Copyright (C) 2006 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 type bridge
+ option ifname "eth0 eth1"
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+ option nat 1
+
+## Example for ATM bridging.
+## Useful for PPPoE or IP over ATM. Will create 'nas${unit}'
+#
+# config atm-bridge
+# option unit 0
+# option encaps llc
+# option vpi 8
+# option vci 35
+# option payload bridged # some ISPs need this set to 'routed'
+
+
+# config interface wan
+## PPPoE:
+# option ifname nas0
+# option proto pppoe
+
+## PPPoA:
+# option ifname atm0
+# option proto pppoa
+# option encaps llc
+# option vpi 8
+# option vci 35
+
+## Both:
+# option username "my_username"
+# option password "my_password"
diff --git a/target/linux/ac49x/base-files/etc/diag.sh
b/target/linux/ac49x/base-files/etc/diag.sh
new file mode 100644
index 0000000..b8e4dc8
--- /dev/null
+++ b/target/linux/ac49x/base-files/etc/diag.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Copyright (C) 2007 OpenWrt.org
+
+# This setup gives us 4.5 distinguishable states:
+#
+# Solid OFF: Bootloader running, or kernel hung (timer task stalled)
+# Solid ON: Kernel hung (timer task stalled)
+# 5Hz blink: preinit
+# 10Hz blink: failsafe
+# Heartbeat: normal operation
+
+set_state() {
+ case "$1" in
+ preinit)
+ [ -d /sys/class/leds/status ] && {
+ echo timer >/sys/class/leds/status/trigger
+ echo 100 >/sys/class/leds/status/delay_on
+ echo 100 >/sys/class/leds/status/delay_off
+ }
+ ;;
+ failsafe)
+ [ -d /sys/class/leds/status ] && {
+ echo timer >/sys/class/leds/status/trigger
+ echo 50 >/sys/class/leds/status/delay_on
+ echo 50 >/sys/class/leds/status/delay_off
+ }
+ ;;
+ done)
+ [ -d /sys/class/leds/status ] && {
+ echo heartbeat >/sys/class/leds/status/trigger
+ }
+ ;;
+ esac
+}
pgpXSmfMbf3Kn.pgp
Description: PGP signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
