aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-04 23:28:44 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-07-05 22:30:22 +0200
commitcd4fcd46f16743b554bca8236830ff838e118be4 (patch)
tree909415e150fa8e16baeeeab09e61a9d4b12a22da /package/base-files/files
parentacd2497cfbd62a3237b8a338cfa2316499572e50 (diff)
downloadupstream-cd4fcd46f16743b554bca8236830ff838e118be4.tar.gz
upstream-cd4fcd46f16743b554bca8236830ff838e118be4.tar.bz2
upstream-cd4fcd46f16743b554bca8236830ff838e118be4.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>
Diffstat (limited to 'package/base-files/files')
-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