diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-04 23:28:44 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-07-05 22:30:46 +0200 |
commit | 6ee6c97ded2d8de72373e25020b11f6484959fdb (patch) | |
tree | ca6188f480ca049e5ee002e0b6e600550cd1517d /package/base-files/files/lib/functions | |
parent | aced9de9a4c2cc19e3e7a27cf1af40b9748aeccd (diff) | |
download | upstream-6ee6c97ded2d8de72373e25020b11f6484959fdb.tar.gz upstream-6ee6c97ded2d8de72373e25020b11f6484959fdb.tar.bz2 upstream-6ee6c97ded2d8de72373e25020b11f6484959fdb.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/lib/functions')
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 2 |
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 |