base-files: Fix path check in get_mac_binary
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 8 Jul 2019 08:17:28 +0000 (10:17 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 9 Jul 2019 21:08:10 +0000 (23:08 +0200)
commit65034359ee8c249a37dc1e2c23292907cdeb5a09
treecc9a9cf36dcea2c65a9d902a94399b2b184eb6c6
parent7f4510a251e318b0360daf745a6fa698a6824d63
base-files: Fix path check in get_mac_binary

Logic was inverted when changing from string check to file check.
Fix it.

Fixes: 8592602d0a88 ("base-files: Really check path in get_mac_binary")
Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 6ed3349308b24a6bac753643970a1f9f56ff6070)
package/base-files/files/lib/functions/system.sh