diff options
Diffstat (limited to 'target/linux/kirkwood/base-files')
3 files changed, 0 insertions, 145 deletions
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds deleted file mode 100644 index 07c1a0e..0000000 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2012-2014 OpenWrt.org -# - -. /lib/functions/uci-defaults.sh -. /lib/kirkwood.sh - -board=$(kirkwood_board_name) - -case "$board" in -"dockstar") - ucidef_set_led_default "health" "status:green:health" "1" - ucidef_set_led_default "fault" "status:orange:fault" "1" - ;; -"ea4500") - ucidef_set_led_default "health" "ea4500:white:health" "1" - ucidef_set_led_default "pulse" "ea4500:white:pulse" "1" - ;; -"ib62x0") - ucidef_set_led_default "health" "ib62x0:green:os" "1" - ucidef_set_led_default "fault" "ib62x0:red:os" "1" - ;; -"pogo_e02") - ucidef_set_led_default "health" "status:green:health" "1" - ucidef_set_led_default "fault" "status:orange:fault" "1" - ;; -*) - ;; -esac - -ucidef_commit_leds - -exit 0 diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network deleted file mode 100644 index e795d65..0000000 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2012-2014 OpenWrt.org -# - -[ -e /etc/config/network ] && exit 0 - -touch /etc/config/network - -set_lan_dhcp() { - local ifname=$1 - uci batch <<EOF -set network.lan='interface' -set network.lan.ifname='$ifname' -set network.lan.proto='dhcp' -set network.lan6='interface' -set network.lan6.ifname='@lan' -set network.lan6.proto='dhcpv6' -set network.lan6.reqprefix='no' -EOF -} - -. /lib/functions/uci-defaults.sh -. /lib/kirkwood.sh - -board=$(kirkwood_board_name) - -ucidef_set_interface_loopback - -case "$board" in -"dockstar") - set_lan_dhcp "eth0" - ;; -"iconnect") - set_lan_dhcp "eth0" - ;; -"ib62x0") - set_lan_dhcp "eth0" - ;; -"pogo_e02") - set_lan_dhcp "eth0" - ;; -"ea4500") - ucidef_set_interfaces_lan_wan "eth0" "eth1" - ;; -*) - ucidef_set_interface_lan "eth0" - ;; -esac - -uci commit network - -exit 0 diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh deleted file mode 100755 index ba080f4..0000000 --- a/target/linux/kirkwood/base-files/lib/kirkwood.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2014 OpenWrt.org -# - -KIRKWOOD_BOARD_NAME= -KIRKWOOD_MODEL= - -kirkwood_board_detect() { - local machine - local name - - machine=$(cat /proc/device-tree/model) - - case "$machine" in - "Seagate FreeAgent Dockstar") - name="dockstar" - ;; - - "Iomega Iconnect") - name="iconnect" - ;; - - "RaidSonic ICY BOX IB-NAS62x0 (Rev B)") - name="ib62x0" - ;; - - "Cloud Engines Pogoplug E02") - name="pogo_e02" - ;; - - "Linksys EA4500") - name="ea4500" - ;; - - *) - name="generic" - ;; - esac - - [ -z "$KIRKWOOD_BOARD_NAME" ] && KIRKWOOD_BOARD_NAME="$name" - [ -z "$KIRKWOOD_MODEL" ] && KIRKWOOD_MODEL="$machine" - - [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/" - - echo "$KIRKWOOD_BOARD_NAME" > /tmp/sysinfo/board_name - echo "$KIRKWOOD_MODEL" > /tmp/sysinfo/model -} - -kirkwood_board_name() { - local name - - [ -f /tmp/sysinfo/board_name ] || kirkwood_board_detect - [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name) - [ -z "$name" ] && name="unknown" - - echo "$name" -} |