[OpenWrt-Devel] [PATCH] oxnas: fix the incorrect board names which cause sysupgrade failed
未命名
countrysideboy at qq.com
Fri Oct 30 06:22:14 EDT 2015
This patch fix the incorrect board name which cause sysupgrade failed. The CONTROL file in xxx-squashfs-sysupgrade.tar says BOARD=pogoplug-pro, instead of pogoplugpro. If the text was recode again, i will use other mailbox. Signed-off-by: Shonn Lu --- diff --git a/target/linux/oxnas/base-files/etc/board.d/01_leds b/target/linux/oxnas/base-files/etc/board.d/01_leds index 17e37cd..f075764 100755 --- a/target/linux/oxnas/base-files/etc/board.d/01_leds +++ b/target/linux/oxnas/base-files/etc/board.d/01_leds @@ -14,7 +14,7 @@ case $board in kd20) ucidef_set_led_default "power" "power" "kd20:blue:status" "1" ;; - pogoplugpro | pogoplugv3) + pogoplug-pro | pogoplug-v3) ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1" ;; diff --git a/target/linux/oxnas/base-files/etc/diag.sh b/target/linux/oxnas/base-files/etc/diag.sh index 5370696..8f484ae 100644 --- a/target/linux/oxnas/base-files/etc/diag.sh +++ b/target/linux/oxnas/base-files/etc/diag.sh @@ -6,13 +6,13 @@ get_status_led() { case $(oxnas_board_name) in - stg212) + stg-212) status_led="zyxel:blue:status" ;; kd20) status_led="kd20:blue:status" ;; - pogoplugpro | pogoplugv3) + pogoplug-pro | pogoplug-v3) status_led="pogoplug:blue:internal" ;; esac diff --git a/target/linux/oxnas/base-files/lib/oxnas.sh b/target/linux/oxnas/base-files/lib/oxnas.sh index 1a04d55..2a07928 100755 --- a/target/linux/oxnas/base-files/lib/oxnas.sh +++ b/target/linux/oxnas/base-files/lib/oxnas.sh @@ -14,16 +14,16 @@ oxnas_board_detect() { case "$machine" in *"MitraStar Technology Corp. STG-212"*) - name="stg212" + name="stg-212" ;; *"Shuttle KD20"*) name="kd20" ;; *"Pogoplug Pro"*) - name="pogoplugpro" + name="pogoplug-pro" ;; *"Pogoplug V3"*) - name="pogoplugv3" + name="pogoplug-v3" ;; esac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151030/1b115854/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-board_name.patch
Type: application/octet-stream
Size: 1809 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151030/1b115854/attachment.obj>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list