0012-procd-clean-up-trailing-whitespace-in-nand.sh.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Wed, 3 May 2017 08:27:40 +0200
  3. Subject: procd: clean up trailing whitespace in nand.sh
  4. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  5. diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh
  6. index ebaaf2aa16009cc1431dbb79ba9f689c8b636069..8a164ee08537014936a8608f5a60fe0e27dcabd6 100644
  7. --- a/package/system/procd/files/nand.sh
  8. +++ b/package/system/procd/files/nand.sh
  9. @@ -194,7 +194,7 @@ nand_upgrade_prepare_ubi() {
  10. nand_do_upgrade_success() {
  11. local conf_tar="/tmp/sysupgrade.tgz"
  12. -
  13. +
  14. sync
  15. [ -f "$conf_tar" ] && nand_restore_config "$conf_tar"
  16. echo "sysupgrade successful"
  17. @@ -231,7 +231,7 @@ nand_upgrade_ubifs() {
  18. local rootfs_length=`(cat $1 | wc -c) 2> /dev/null`
  19. nand_upgrade_prepare_ubi "$rootfs_length" "ubifs" "0" "0"
  20. -
  21. +
  22. local ubidev="$( nand_find_ubi "$CI_UBIPART" )"
  23. local root_ubivol="$(nand_find_volume $ubidev rootfs)"
  24. ubiupdatevol /dev/$root_ubivol -s $rootfs_length $1