diff options
author | Günther Kelleter <guenther.kelleter@devolo.de> | 2017-02-08 16:47:22 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-11 21:46:58 +0100 |
commit | 6228d0f21b2dcf20d7b2223c43f8b90b9b51bc4d (patch) | |
tree | fc72f6d5ee5789f2887f96693d39f5e424770656 /scripts/netifd-wireless.sh | |
parent | 7cc2f10824fb0f7a519a30a77ed75439aab2b6ff (diff) | |
download | netifd-6228d0f21b2dcf20d7b2223c43f8b90b9b51bc4d.tar.gz |
wireless: fix _wireless_add_process
The pid is in $1, not $pid.
Use proper test condition for nonmatching exe warning.
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
Diffstat (limited to 'scripts/netifd-wireless.sh')
-rw-r--r-- | scripts/netifd-wireless.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh index 87d13ca..106c49d 100644 --- a/scripts/netifd-wireless.sh +++ b/scripts/netifd-wireless.sh @@ -163,8 +163,8 @@ _wireless_add_process() { json_add_int pid "$1" json_add_string exe "$exe" [ -n "$3" ] && json_add_boolean required 1 - exe2="$(readlink -f /proc/$pid/exe)" - [ "$exe" = "$exe2" ] && echo "WARNING (wireless_add_process): executable path $exe does not match process $1 path ($exe2)" + exe2="$(readlink -f /proc/$1/exe)" + [ "$exe" != "$exe2" ] && echo "WARNING (wireless_add_process): executable path $exe does not match process $1 path ($exe2)" _wdev_notify } |