aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-10 16:47:46 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-11 12:52:01 +0200
commitd7d6e055e9d9d9554f59e919f37e0b6cd46b12a1 (patch)
treee2495a77aa22a3f89014293181c101f93dc14bc0 /package/base-files/files/lib/preinit
parent5115cb0501674bd613d39edab41957578565ff9e (diff)
downloadupstream-d7d6e055e9d9d9554f59e919f37e0b6cd46b12a1.tar.gz
upstream-d7d6e055e9d9d9554f59e919f37e0b6cd46b12a1.tar.bz2
upstream-d7d6e055e9d9d9554f59e919f37e0b6cd46b12a1.zip
base-files: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. This does not touch lib/upgrade/nand.sh, as there replacement is not trivial. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/base-files/files/lib/preinit')
-rw-r--r--package/base-files/files/lib/preinit/30_failsafe_wait2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/preinit/30_failsafe_wait b/package/base-files/files/lib/preinit/30_failsafe_wait
index 85dca398fa..a2c2c386aa 100644
--- a/package/base-files/files/lib/preinit/30_failsafe_wait
+++ b/package/base-files/files/lib/preinit/30_failsafe_wait
@@ -91,7 +91,7 @@ failsafe_wait() {
grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE
if [ "$FAILSAFE" != "true" ]; then
fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true
- [ -f "/tmp/failsafe_button" ] && FAILSAFE=true && echo "- failsafe button "`cat /tmp/failsafe_button`" was pressed -"
+ [ -f "/tmp/failsafe_button" ] && FAILSAFE=true && echo "- failsafe button "$(cat /tmp/failsafe_button)" was pressed -"
[ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe
fi
}