aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-25 00:45:49 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-09-29 00:46:13 +0200
commita421a12f9cc7b0d552f83c2f6fe06b14308ab614 (patch)
tree2a297630e2402ccd55b46481a7bf4ad52812e994 /target/linux
parent81c52edf2bab9c51413a26289fbe97c8ef8aa44c (diff)
downloadupstream-a421a12f9cc7b0d552f83c2f6fe06b14308ab614.tar.gz
upstream-a421a12f9cc7b0d552f83c2f6fe06b14308ab614.tar.bz2
upstream-a421a12f9cc7b0d552f83c2f6fe06b14308ab614.zip
orion: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> [decapitalized patch subject at submitter's request] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/orion/generic/base-files/etc/uci-defaults/09_hardware12
-rw-r--r--target/linux/orion/image/generic.mk2
2 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/orion/generic/base-files/etc/uci-defaults/09_hardware b/target/linux/orion/generic/base-files/etc/uci-defaults/09_hardware
index 751749d13d..5d928b092a 100644
--- a/target/linux/orion/generic/base-files/etc/uci-defaults/09_hardware
+++ b/target/linux/orion/generic/base-files/etc/uci-defaults/09_hardware
@@ -30,15 +30,15 @@ commit system
__EOF
# add mac address from U-Boot partition to lan and wan devices
- MTD=`grep -e 'u-boot' /proc/mtd`
- MTD=`echo ${MTD} | sed 's/[a-z]*\([0-9]*\):.*/\1/'`
+ MTD=$(grep -e 'u-boot' /proc/mtd)
+ MTD=$(echo ${MTD} | sed 's/[a-z]*\([0-9]*\):.*/\1/')
[ -n "${MTD}" ] && {
- MACADDR=`dd if=/dev/mtdblock${MTD} bs=1 skip=262048 count=6 2>/dev/null | hexdump -e '1/1 "%02x"'`
+ MACADDR=$(dd if=/dev/mtdblock${MTD} bs=1 skip=262048 count=6 2>/dev/null | hexdump -e '1/1 "%02x"')
MACADDR2=$(( 0x${MACADDR} + 1))
- MACADDR2=`printf "%012x" ${MACADDR2}`
+ MACADDR2=$(printf "%012x" ${MACADDR2})
- MACADDR=`echo ${MACADDR} | sed 's/\(..\)/\1:/g' | sed 's/:$//'`
- MACADDR2=`echo ${MACADDR2} | sed 's/\(..\)/\1:/g' | sed 's/:$//'`
+ MACADDR=$(echo ${MACADDR} | sed 's/\(..\)/\1:/g' | sed 's/:$//')
+ MACADDR2=$(echo ${MACADDR2} | sed 's/\(..\)/\1:/g' | sed 's/:$//')
uci set network.eth0.macaddr=${MACADDR}
uci set network.lan.macaddr=${MACADDR}
diff --git a/target/linux/orion/image/generic.mk b/target/linux/orion/image/generic.mk
index 22909ac73d..595f8c1f79 100644
--- a/target/linux/orion/image/generic.mk
+++ b/target/linux/orion/image/generic.mk
@@ -110,7 +110,7 @@ endef
define Image/Default/FileSizeCheck
# parameters: 1 = file path, 2 = maximum size in bytes
- [ `stat -c %s '$(1)'` -le $(2) ] || { echo ' ERROR: $(1) too big (> $(2) bytes)'; rm -f $(1); }
+ [ $(stat -c %s '$(1)') -le $(2) ] || { echo ' ERROR: $(1) too big (> $(2) bytes)'; rm -f $(1); }
endef