summaryrefslogtreecommitdiff
path: root/system/watchdog/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/watchdog/doinst.sh')
-rw-r--r--system/watchdog/doinst.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/watchdog/doinst.sh b/system/watchdog/doinst.sh
index 3cf6ace364..a75147f719 100644
--- a/system/watchdog/doinst.sh
+++ b/system/watchdog/doinst.sh
@@ -1,11 +1,11 @@
config()
{
NEW="$1"
- OLD="`dirname $NEW`/`basename $NEW .new`"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
- elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi