aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen_image_generic.sh
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-12-29 21:07:55 -0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-31 01:06:20 +0100
commit3f65fe5d62052747f08c5f661a2b7793e4510372 (patch)
treea1ed3db8f1c6d0a2a49d285ecea8a87ca3574fb4 /scripts/gen_image_generic.sh
parent2e14dd23c9fddaae9d75f211c57e792f2839c85a (diff)
downloadupstream-3f65fe5d62052747f08c5f661a2b7793e4510372.tar.gz
upstream-3f65fe5d62052747f08c5f661a2b7793e4510372.tar.bz2
upstream-3f65fe5d62052747f08c5f661a2b7793e4510372.zip
scripts/gen_image_generic.sh: replace deprecated backticks with $()
This replaces deprecated backticks by more versatile $(...) syntax. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com> [adjust commit title and message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'scripts/gen_image_generic.sh')
-rwxr-xr-xscripts/gen_image_generic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_image_generic.sh b/scripts/gen_image_generic.sh
index 7b642c00d6..2c57d56f07 100755
--- a/scripts/gen_image_generic.sh
+++ b/scripts/gen_image_generic.sh
@@ -20,7 +20,7 @@ sect=63
cyl=$(( (KERNELSIZE + ROOTFSSIZE) * 1024 * 1024 / (head * sect * 512)))
# create partition table
-set `ptgen -o "$OUTPUT" -h $head -s $sect -p ${KERNELSIZE}m -p ${ROOTFSSIZE}m ${ALIGN:+-l $ALIGN} ${SIGNATURE:+-S 0x$SIGNATURE}`
+set $(ptgen -o "$OUTPUT" -h $head -s $sect -p ${KERNELSIZE}m -p ${ROOTFSSIZE}m ${ALIGN:+-l $ALIGN} ${SIGNATURE:+-S 0x$SIGNATURE})
KERNELOFFSET="$(($1 / 512))"
KERNELSIZE="$2"