mvebu: replace backticks by $(...)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 24 Jul 2019 22:41:32 +0000 (00:41 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 28 Sep 2019 22:46:13 +0000 (00:46 +0200)
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>
target/linux/mvebu/base-files/lib/upgrade/linksys.sh
target/linux/mvebu/base-files/sbin/fan_ctrl.sh

index ca64a0edf135d9776a90cf68312e9e6604e392e5..6ccfdd0768dad54366c682c9be24a188fbea75df 100644 (file)
@@ -6,7 +6,7 @@ linksys_get_target_firmware() {
 
        local cur_boot_part mtd_ubi0
 
-       cur_boot_part=`/usr/sbin/fw_printenv -n boot_part`
+       cur_boot_part=$(/usr/sbin/fw_printenv -n boot_part)
        if [ -z "${cur_boot_part}" ] ; then
                mtd_ubi0=$(cat /sys/devices/virtual/ubi/ubi0/mtd_num)
                case $(egrep ^mtd${mtd_ubi0}: /proc/mtd | cut -d '"' -f 2) in
index 06e462119d21dab7e5c30e01a899241ebfb1ecc4..42346683177ff77ac20a9445d084efde2a250e73 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-CPU_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon2/temp1_input`
-DDR_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input`
-WIFI_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp2_input`
+CPU_TEMP=$(cut -c1-2 /sys/class/hwmon/hwmon2/temp1_input)
+DDR_TEMP=$(cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input)
+WIFI_TEMP=$(cut -c1-2 /sys/class/hwmon/hwmon1/temp2_input)
 
 CPU_LOW=85
 CPU_HIGH=95