summaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/rb532/base-files')
-rw-r--r--target/linux/rb532/base-files/etc/config/network8
-rw-r--r--target/linux/rb532/base-files/etc/diag.sh18
-rwxr-xr-xtarget/linux/rb532/base-files/sbin/cf2nand2
-rwxr-xr-xtarget/linux/rb532/base-files/sbin/wget2nand2
4 files changed, 18 insertions, 12 deletions
diff --git a/target/linux/rb532/base-files/etc/config/network b/target/linux/rb532/base-files/etc/config/network
index ee09491c7..3a8c8f30b 100644
--- a/target/linux/rb532/base-files/etc/config/network
+++ b/target/linux/rb532/base-files/etc/config/network
@@ -11,3 +11,11 @@ config interface lan
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
+ option ip6assign 60
+
+config interface wan6
+ option ifname @wan
+ option proto dhcpv6
+
+config globals globals
+ option ula_prefix auto
diff --git a/target/linux/rb532/base-files/etc/diag.sh b/target/linux/rb532/base-files/etc/diag.sh
index d8f9a8825..482b8e995 100644
--- a/target/linux/rb532/base-files/etc/diag.sh
+++ b/target/linux/rb532/base-files/etc/diag.sh
@@ -1,19 +1,17 @@
#!/bin/sh
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2013 OpenWrt.org
-set_led() {
- local led="$1"
- local state="$2"
- [ -d "/sys/class/leds/rb500led:$led" ] && echo "$state" > "/sys/class/leds/rb500led:$led/brightness"
-}
+. /lib/functions/leds.sh
+
+status_led="rb500led:amber"
set_state() {
case "$1" in
- preinit)
- set_led amber 1
+ preinit)
+ status_led_on
;;
- done)
- set_led amber 0
+ done)
+ status_led_off
;;
esac
}
diff --git a/target/linux/rb532/base-files/sbin/cf2nand b/target/linux/rb532/base-files/sbin/cf2nand
index 60542de1e..0bfc259ef 100755
--- a/target/linux/rb532/base-files/sbin/cf2nand
+++ b/target/linux/rb532/base-files/sbin/cf2nand
@@ -1,5 +1,5 @@
#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
copy_kernel() {
local input="$1"
diff --git a/target/linux/rb532/base-files/sbin/wget2nand b/target/linux/rb532/base-files/sbin/wget2nand
index 57f412864..9a111fa89 100755
--- a/target/linux/rb532/base-files/sbin/wget2nand
+++ b/target/linux/rb532/base-files/sbin/wget2nand
@@ -6,7 +6,7 @@
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
-. /etc/functions.sh
+. /lib/functions.sh
[ -d /tmp/wget2nand ] && {
echo "/tmp/wget2nand already exists"