base-files: Really check path in get_mac_binary
[openwrt/staging/mkresin.git] / package / base-files / files / lib / functions / system.sh
index 7ed62804a081fcd799188e185e00e48f79dfbdac..df671465beaf79cf8513d49923e4f6a749e05b52 100644 (file)
@@ -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