openwrtv3/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
Luka Perkov 58fa3f8fdf kirkwood: update support for dockstar
The board is optimized for ubi(fs) and boots OpenWrt without changes to uboot
environment if OpenWrt's uboot package is used. In order to flash the image run
following commands in uboot shell:

nand erase 0x200000 0xfe00000
ubi part root ; ubi remove rootfs ; ubi create rootfs
tftpboot 0x800000 openwrt-kirkwood-dockstar-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset

Signed-off-by: Luka Perkov <luka@openwrt.org>
Tested-by: Alexander Couzens <lynxis@fe80.eu>
CC: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 39593
2014-02-15 23:53:10 +00:00

23 lines
469 B
Bash

#!/bin/sh
#
# Copyright (C) 2012-2013 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
case "`cat /proc/device-tree/model`" in
"Seagate FreeAgent Dockstar")
ucidef_set_led_default "health" "status:green:health" "1"
ucidef_set_led_default "fault" "status:orange:fault" "1"
;;
"Cloud Engines Pogoplug 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