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/avr32/base-files | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'target/linux/avr32/base-files')
14 files changed, 409 insertions, 0 deletions
diff --git a/target/linux/avr32/base-files/.svn/entries b/target/linux/avr32/base-files/.svn/entries new file mode 100644 index 0000000..9dfcfa4 --- /dev/null +++ b/target/linux/avr32/base-files/.svn/entries @@ -0,0 +1,34 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:27.006332Z +35982 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +lib +dir + +etc +dir + diff --git a/target/linux/avr32/base-files/etc/.svn/entries b/target/linux/avr32/base-files/etc/.svn/entries new file mode 100644 index 0000000..e5f92fc --- /dev/null +++ b/target/linux/avr32/base-files/etc/.svn/entries @@ -0,0 +1,65 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files/etc +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:21.469578Z +35980 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +uci-defaults +dir + +diag.sh +file + + + + +2013-03-17T12:12:22.000000Z +14cf556fa7797e2cc65a5ced1dbb51e8 +2013-03-12T13:28:21.469578Z +35980 +juhosg +has-props + + + + + + + + + + + + + + + + + + + + +260 + diff --git a/target/linux/avr32/base-files/etc/.svn/prop-base/diag.sh.svn-base b/target/linux/avr32/base-files/etc/.svn/prop-base/diag.sh.svn-base new file mode 100644 index 0000000..03b5bfa --- /dev/null +++ b/target/linux/avr32/base-files/etc/.svn/prop-base/diag.sh.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +END diff --git a/target/linux/avr32/base-files/etc/.svn/text-base/diag.sh.svn-base b/target/linux/avr32/base-files/etc/.svn/text-base/diag.sh.svn-base new file mode 100644 index 0000000..ea20f98 --- /dev/null +++ b/target/linux/avr32/base-files/etc/.svn/text-base/diag.sh.svn-base @@ -0,0 +1,23 @@ +#!/bin/sh +# Copyright (C) 2013 OpenWrt.org + +. /lib/functions/leds.sh + +set_state() { + status_led="sys" + + case "$1" in + preinit) + insmod leds-gpio + status_led_blink_preinit + ;; + + failsafe) + status_led_blink_failsafe + ;; + + done) + status_led_on + ;; + esac +} diff --git a/target/linux/avr32/base-files/etc/diag.sh b/target/linux/avr32/base-files/etc/diag.sh new file mode 100755 index 0000000..ea20f98 --- /dev/null +++ b/target/linux/avr32/base-files/etc/diag.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# Copyright (C) 2013 OpenWrt.org + +. /lib/functions/leds.sh + +set_state() { + status_led="sys" + + case "$1" in + preinit) + insmod leds-gpio + status_led_blink_preinit + ;; + + failsafe) + status_led_blink_failsafe + ;; + + done) + status_led_on + ;; + esac +} diff --git a/target/linux/avr32/base-files/etc/uci-defaults/.svn/entries b/target/linux/avr32/base-files/etc/uci-defaults/.svn/entries new file mode 100644 index 0000000..391afe2 --- /dev/null +++ b/target/linux/avr32/base-files/etc/uci-defaults/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files/etc/uci-defaults +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:19.472679Z +35979 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +02_network +file + + + + +2013-03-17T12:12:22.000000Z +68444f8ca67a9a99e3d72a312ac410e0 +2013-03-12T13:28:19.472679Z +35979 +juhosg +has-props + + + + + + + + + + + + + + + + + + + + +249 + diff --git a/target/linux/avr32/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base b/target/linux/avr32/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base new file mode 100644 index 0000000..869ac71 --- /dev/null +++ b/target/linux/avr32/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base @@ -0,0 +1,5 @@ +K 14 +svn:executable +V 1 +* +END diff --git a/target/linux/avr32/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base b/target/linux/avr32/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base new file mode 100644 index 0000000..3676146 --- /dev/null +++ b/target/linux/avr32/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Copyright (C) 2013 OpenWrt.org +# + +[ -e /etc/config/network ] && exit 0 + +touch /etc/config/network + +. /lib/functions/uci-defaults.sh + +ucidef_set_interface_loopback +ucidef_set_interfaces_lan_wan "eth1" "eth0" + +uci commit network + +exit 0 diff --git a/target/linux/avr32/base-files/etc/uci-defaults/02_network b/target/linux/avr32/base-files/etc/uci-defaults/02_network new file mode 100755 index 0000000..3676146 --- /dev/null +++ b/target/linux/avr32/base-files/etc/uci-defaults/02_network @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Copyright (C) 2013 OpenWrt.org +# + +[ -e /etc/config/network ] && exit 0 + +touch /etc/config/network + +. /lib/functions/uci-defaults.sh + +ucidef_set_interface_loopback +ucidef_set_interfaces_lan_wan "eth1" "eth0" + +uci commit network + +exit 0 diff --git a/target/linux/avr32/base-files/lib/.svn/entries b/target/linux/avr32/base-files/lib/.svn/entries new file mode 100644 index 0000000..bb62a41 --- /dev/null +++ b/target/linux/avr32/base-files/lib/.svn/entries @@ -0,0 +1,31 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files/lib +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:27.006332Z +35982 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +upgrade +dir + diff --git a/target/linux/avr32/base-files/lib/upgrade/.svn/entries b/target/linux/avr32/base-files/lib/upgrade/.svn/entries new file mode 100644 index 0000000..6896697 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files/lib/upgrade +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:27.006332Z +35982 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +platform.sh +file + + + + +2013-03-17T12:12:22.000000Z +a2e92c3500824a13adf40aeb3b239ec4 +2013-03-12T13:28:27.006332Z +35982 +juhosg +has-props + + + + + + + + + + + + + + + + + + + + +436 + diff --git a/target/linux/avr32/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base b/target/linux/avr32/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base new file mode 100644 index 0000000..869ac71 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base @@ -0,0 +1,5 @@ +K 14 +svn:executable +V 1 +* +END diff --git a/target/linux/avr32/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/avr32/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base new file mode 100644 index 0000000..00ad863 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base @@ -0,0 +1,28 @@ +# +# Copyright (C) 2013 OpenWrt.org +# + +PART_NAME=firmware + +platform_check_image() { + local magic="$(get_magic_long "$1")" + + [ "$ARGC" -gt 1 ] && return 1 + + [ "$magic" != "27051956" ] && { + echo "Invalid image type." + return 1 + } + + return 0 +} + +disable_watchdog() { + killall watchdog + ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { + echo 'Could not disable watchdog' + return 1 + } +} + +append sysupgrade_pre_upgrade disable_watchdog diff --git a/target/linux/avr32/base-files/lib/upgrade/platform.sh b/target/linux/avr32/base-files/lib/upgrade/platform.sh new file mode 100755 index 0000000..00ad863 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/platform.sh @@ -0,0 +1,28 @@ +# +# Copyright (C) 2013 OpenWrt.org +# + +PART_NAME=firmware + +platform_check_image() { + local magic="$(get_magic_long "$1")" + + [ "$ARGC" -gt 1 ] && return 1 + + [ "$magic" != "27051956" ] && { + echo "Invalid image type." + return 1 + } + + return 0 +} + +disable_watchdog() { + killall watchdog + ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { + echo 'Could not disable watchdog' + return 1 + } +} + +append sysupgrade_pre_upgrade disable_watchdog |