]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Support for Solaris default shell restriction
authorMasashi Honma <honma@ictec.co.jp>
Sat, 17 Apr 2010 14:15:23 +0000 (17:15 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 17 Apr 2010 14:15:23 +0000 (17:15 +0300)
Some shells (like Solaris default /bin/sh) doesn't allow -e
option for file existence check. Use -f instead.

hostapd/Makefile
wpa_supplicant/Makefile

index 17e2caea9f5ec0738d9f2aed4fbffaea45afcf25..538b0cfbd719befec26ee95c0604604fbe416b71 100644 (file)
@@ -731,7 +731,7 @@ install: all
        for i in $(ALL); do cp -f $$i /usr/local/bin/$$i; done
 
 ../src/drivers/build.hostapd:
-       @if [ -e ../src/drivers/build.wpa_supplicant ]; then \
+       @if [ -f ../src/drivers/build.wpa_supplicant ]; then \
                $(MAKE) -C ../src/drivers clean; \
        fi
        @touch ../src/drivers/build.hostapd
index 10bfd67ad7339cc77b5a4018d68a3de9465dc24d..f9eebd813c6b400207350f39aec00fbda8598d1e 100644 (file)
@@ -26,7 +26,7 @@ verify_config:
        fi
 
 mkconfig:
-       @if [ -e .config ]; then \
+       @if [ -f .config ]; then \
                echo '.config exists - did not replace it'; \
                exit 1; \
        fi
@@ -1252,7 +1252,7 @@ endif
 dynamic_eap_methods: $(EAPDYN)
 
 ../src/drivers/build.wpa_supplicant:
-       @if [ -e ../src/drivers/build.hostapd ]; then \
+       @if [ -f ../src/drivers/build.hostapd ]; then \
                $(MAKE) -C ../src/drivers clean; \
        fi
        @touch ../src/drivers/build.wpa_supplicant