[LEDE-DEV] [PATCH v2] uboot-envtools: remove function vals and fix indentation

Jan-Tarek Butt tarek at ring0.de
Thu Oct 6 00:43:21 PDT 2016


Signed-off-by: Jan-Tarek Butt <tarek at ring0.de>
---
 package/boot/uboot-envtools/files/uboot-envtools.sh | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/package/boot/uboot-envtools/files/uboot-envtools.sh b/package/boot/uboot-envtools/files/uboot-envtools.sh
index e21b283..ad41e07 100644
--- a/package/boot/uboot-envtools/files/uboot-envtools.sh
+++ b/package/boot/uboot-envtools/files/uboot-envtools.sh
@@ -4,19 +4,14 @@
 #
 
 ubootenv_add_uci_config() {
-	local dev=$1
-	local offset=$2
-	local envsize=$3
-	local secsize=$4
-	local numsec=$5
-	uci batch <<EOF
-add ubootenv ubootenv
-set ubootenv. at ubootenv[-1].dev='$dev'
-set ubootenv. at ubootenv[-1].offset='$offset'
-set ubootenv. at ubootenv[-1].envsize='$envsize'
-set ubootenv. at ubootenv[-1].secsize='$secsize'
-set ubootenv. at ubootenv[-1].numsec='$numsec'
-EOF
+	uci batch <<-EOF
+		add ubootenv ubootenv
+		set ubootenv. at ubootenv[-1].dev='$1'
+		set ubootenv. at ubootenv[-1].offset='$2'
+		set ubootenv. at ubootenv[-1].envsize='$3'
+		set ubootenv. at ubootenv[-1].secsize='$4'
+		set ubootenv. at ubootenv[-1].numsec='$5'
+	EOF
 	uci commit ubootenv
 }
 
-- 
2.10.0




More information about the Lede-dev mailing list