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 17e2cae..538b0cf 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 10bfd67..f9eebd8 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