<div><font editorwarp__="1" style="display: inline; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; background-color: rgba(0, 0, 0, 0);">I have send this email again using Thunderbird.Thanks for your patiently reply.</font></div><font editorwarp__="1" style="display: inline; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; background-color: rgba(0, 0, 0, 0);"><div style="display: block; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; background-color: rgba(0, 0, 0, 0);"><br></div><div style="display: block; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; background-color: rgba(0, 0, 0, 0);">Best regards,</div><div style="display: block; font-size: 14px; font-family: Verdana; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; background-color: rgba(0, 0, 0, 0);">Shonn</div></font><div></div><div><br></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Daniel Golle";<daniel@makrotopia.org>;</div><div><b>Date: </b> Fri, Oct 30, 2015 02:22 PM</div><div><b>To: </b> "δÃüÃû"<countrysideboy@qq.com>; <wbr></div><div><b>Cc: </b> "openwrt-devel"<openwrt-devel@lists.openwrt.org>; <wbr></div><div><b>Subject: </b> Re: [OpenWrt-Devel] [PATCH] oxnas: fix the incorrect board nameswhich cause sysupgrade failed</div></div><div><br></div>Hi!<br><br>Yes, that's getting closer, but unfortunately it's still not<br>applicable.<br><br>Apparently the patch got white-space mangled and CR-LF'ed by your MUA.<br>Try attaching the patches created using<br>git format-patch --to openwrt-devel@....<br>instead, as that will prevent the mail-body from getting recoded or<br>messed with in any way.<br>If possible, setup ssmtp and avoid any browser-based or GUI-driven MUAs<br>but rather use git send-email directly with ssmtp or alike.<br><br>Thank you for your efforts! Your submission is highly appreciated!<br><br>-snip-snap-snap-snip-snap-snip-snap-snip-snap-snip-snap-snip-snap-<br><br>$ git am ...<br>Applying: oxnas: fix the incorrect board names which cause sysupgrade failed<br>.git/rebase-apply/patch:11: trailing whitespace.<br>    pogoplug-pro | pogoplug-v3)<br>.git/rebase-apply/patch:24: trailing whitespace.<br>    stg-212)<br>.git/rebase-apply/patch:31: trailing whitespace.<br>    pogoplug-pro | pogoplug-v3)<br>.git/rebase-apply/patch:44: trailing whitespace.<br>    name="stg-212"<br>.git/rebase-apply/patch:51: trailing whitespace.<br>    name="pogoplug-pro"<br>fatal: corrupt patch at line 58<br>Patch failed at 0001 oxnas: fix the incorrect board names which cause sysupgrade failed<br>The copy of the patch that failed is found in: .git/rebase-apply/patch<br>When you have resolved this problem, run "git am --continue".<br>If you prefer to skip this patch, run "git am --skip" instead.<br>To restore the original branch and stop patching, run "git am --abort".<br>$ patch -p1 --dry-run -i .git/rebase-apply/patch<br>(Stripping trailing CRs from patch; use --binary to disable.)<br>checking file target/linux/oxnas/base-files/etc/board.d/01_leds<br>(Stripping trailing CRs from patch; use --binary to disable.)<br>checking file target/linux/oxnas/base-files/etc/diag.sh<br>(Stripping trailing CRs from patch; use --binary to disable.)<br>checking file target/linux/oxnas/base-files/lib/oxnas.sh<br>patch: **** malformed patch at line 58: _______________________________________________<br><br><br><br><br>Cheers<br><br><br>Daniel<br><br><br><br>On Fri, Oct 30, 2015 at 01:29:34PM +0800, play4fun wrote:<br>> 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.<br>> <br>> Signed-off-by:  Shonn Lu <countrysideboy@qq.com><br>> ---<br>> diff --git a/target/linux/oxnas/base-files/etc/board.d/01_leds b/target/linux/oxnas/base-files/etc/board.d/01_leds<br>> index 17e37cd..f075764 100755<br>> --- a/target/linux/oxnas/base-files/etc/board.d/01_leds<br>> +++ b/target/linux/oxnas/base-files/etc/board.d/01_leds<br>> @@ -14,7 +14,7 @@ case $board in<br>>      kd20)<br>>                ucidef_set_led_default "power" "power" "kd20:blue:status" "1"<br>>                ;;<br>> -      pogoplugpro | pogoplugv3)<br>> +       pogoplug-pro | pogoplug-v3)<br>>                  ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"<br>>                  ;;<br>>  <br>> diff --git a/target/linux/oxnas/base-files/etc/diag.sh b/target/linux/oxnas/base-files/etc/diag.sh<br>> index 5370696..8f484ae 100644<br>> --- a/target/linux/oxnas/base-files/etc/diag.sh<br>> +++ b/target/linux/oxnas/base-files/etc/diag.sh<br>> @@ -6,13 +6,13 @@<br>>  <br>>  get_status_led() {<br>>         case $(oxnas_board_name) in<br>> -     stg212)<br>> + stg-212)<br>>             status_led="zyxel:blue:status"<br>>             ;;<br>>   kd20)<br>>                status_led="kd20:blue:status"<br>>              ;;<br>> -      pogoplugpro | pogoplugv3)<br>> +       pogoplug-pro | pogoplug-v3)<br>>                  status_led="pogoplug:blue:internal"<br>>                ;;<br>>   esac<br>> diff --git a/target/linux/oxnas/base-files/lib/oxnas.sh b/target/linux/oxnas/base-files/lib/oxnas.sh<br>> index 1a04d55..2a07928 100755<br>> --- a/target/linux/oxnas/base-files/lib/oxnas.sh<br>> +++ b/target/linux/oxnas/base-files/lib/oxnas.sh<br>> @@ -14,16 +14,16 @@ oxnas_board_detect() {<br>>  <br>>      case "$machine" in<br>>         *"MitraStar Technology Corp. STG-212"*)<br>> -               name="stg212"<br>> +         name="stg-212"<br>>             ;;<br>>   *"Shuttle KD20"*)<br>>                  name="kd20"<br>>                ;;<br>>   *"Pogoplug Pro"*)<br>> -             name="pogoplugpro"<br>> +            name="pogoplug-pro"<br>>                ;;<br>>   *"Pogoplug V3"*)<br>> -              name="pogoplugv3"<br>> +             name="pogoplug-v3"<br>>                 ;;<br>>   esac<br><br>> _______________________________________________<br>> openwrt-devel mailing list<br>> openwrt-devel@lists.openwrt.org<br>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel<br><br></div>