diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/adm8668/base-files/etc | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'target/linux/adm8668/base-files/etc')
6 files changed, 201 insertions, 0 deletions
diff --git a/target/linux/adm8668/base-files/etc/.svn/entries b/target/linux/adm8668/base-files/etc/.svn/entries new file mode 100644 index 0000000..d993d98 --- /dev/null +++ b/target/linux/adm8668/base-files/etc/.svn/entries @@ -0,0 +1,65 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/adm8668/base-files/etc +svn://svn.openwrt.org/openwrt + + + +2010-11-06T18:54:20.513313Z +23900 +florian + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +config +dir + +diag.sh +file + + + + +2013-03-17T12:12:21.000000Z +760545074a3b3d5f1ab11f3c082706c0 +2010-11-06T18:54:20.513313Z +23900 +florian + + + + + + + + + + + + + + + + + + + + + +271 + diff --git a/target/linux/adm8668/base-files/etc/.svn/text-base/diag.sh.svn-base b/target/linux/adm8668/base-files/etc/.svn/text-base/diag.sh.svn-base new file mode 100644 index 0000000..edcc753 --- /dev/null +++ b/target/linux/adm8668/base-files/etc/.svn/text-base/diag.sh.svn-base @@ -0,0 +1,21 @@ +#!/bin/sh +# Copyright (C) 2010 OpenWrt.org + +set_led() { + local state="$1" + [ -f "/proc/adm8668/sesled" ] && echo "$state" > "/proc/adm8668/sesled" +} + +set_state() { + case "$1" in + preinit) + set_led 1 + ;; + failsafe) + set_led 2 + ;; + done) + set_led 0 + ;; + esac +} diff --git a/target/linux/adm8668/base-files/etc/config/.svn/entries b/target/linux/adm8668/base-files/etc/config/.svn/entries new file mode 100644 index 0000000..d265848 --- /dev/null +++ b/target/linux/adm8668/base-files/etc/config/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/adm8668/base-files/etc/config +svn://svn.openwrt.org/openwrt + + + +2010-11-06T18:54:20.513313Z +23900 +florian + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +network +file + + + + +2013-03-17T12:12:21.000000Z +96760923575ec4a7ea4367c42904e694 +2010-11-06T18:54:20.513313Z +23900 +florian + + + + + + + + + + + + + + + + + + + + + +318 + diff --git a/target/linux/adm8668/base-files/etc/config/.svn/text-base/network.svn-base b/target/linux/adm8668/base-files/etc/config/.svn/text-base/network.svn-base new file mode 100644 index 0000000..120db23 --- /dev/null +++ b/target/linux/adm8668/base-files/etc/config/.svn/text-base/network.svn-base @@ -0,0 +1,16 @@ +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 interface wan + option ifname eth1 + option proto dhcp diff --git a/target/linux/adm8668/base-files/etc/config/network b/target/linux/adm8668/base-files/etc/config/network new file mode 100644 index 0000000..120db23 --- /dev/null +++ b/target/linux/adm8668/base-files/etc/config/network @@ -0,0 +1,16 @@ +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 interface wan + option ifname eth1 + option proto dhcp diff --git a/target/linux/adm8668/base-files/etc/diag.sh b/target/linux/adm8668/base-files/etc/diag.sh new file mode 100644 index 0000000..edcc753 --- /dev/null +++ b/target/linux/adm8668/base-files/etc/diag.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Copyright (C) 2010 OpenWrt.org + +set_led() { + local state="$1" + [ -f "/proc/adm8668/sesled" ] && echo "$state" > "/proc/adm8668/sesled" +} + +set_state() { + case "$1" in + preinit) + set_led 1 + ;; + failsafe) + set_led 2 + ;; + done) + set_led 0 + ;; + esac +} |