aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-04 23:28:44 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-07-07 13:02:05 +0200
commit8592602d0a880e89980d9874ad134b685e1c05d1 (patch)
treeee8c7e89c57094057d66b77cc945d326fe699f7f
parentb683f1c36d8a791f3d8b53c2c2748fa89bcf94af (diff)
downloadupstream-8592602d0a880e89980d9874ad134b685e1c05d1.tar.gz
upstream-8592602d0a880e89980d9874ad134b685e1c05d1.tar.bz2
upstream-8592602d0a880e89980d9874ad134b685e1c05d1.zip
base-files: Really check path in get_mac_binary
Currently, path argument is only checked for being not empty. This changes behavior to actually check whether path exists. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rw-r--r--package/base-files/files/lib/functions/system.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh
index 7ed62804a0..df671465be 100644
--- a/package/base-files/files/lib/functions/system.sh
+++ b/package/base-files/files/lib/functions/system.sh
@@ -4,7 +4,7 @@ get_mac_binary() {
local path="$1"
local offset="$2"
- if [ -z "$path" ]; then
+ if [ -e "$path" ]; then
echo "get_mac_binary: file $path not found!" >&2
return
fi