From: Masashi Honma Date: Sat, 17 Apr 2010 14:15:23 +0000 (+0300) Subject: Support for Solaris default shell restriction X-Git-Tag: hostap_0_7_2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5008cb5e55ed0cd8d7b3f819c2e6ac2f13d7325e;p=thirdparty%2Fhostap.git Support for Solaris default shell restriction Some shells (like Solaris default /bin/sh) doesn't allow -e option for file existence check. Use -f instead. --- diff --git a/hostapd/Makefile b/hostapd/Makefile index 17e2caea9..538b0cfbd 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -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 diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 10bfd67ad..f9eebd813 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -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