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.
This commit is contained in:
Masashi Honma 2010-04-17 17:15:23 +03:00 committed by Jouni Malinen
parent 7992b07f6a
commit 5008cb5e55
2 changed files with 3 additions and 3 deletions

View file

@ -731,7 +731,7 @@ install: all
for i in $(ALL); do cp -f $$i /usr/local/bin/$$i; done for i in $(ALL); do cp -f $$i /usr/local/bin/$$i; done
../src/drivers/build.hostapd: ../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; \ $(MAKE) -C ../src/drivers clean; \
fi fi
@touch ../src/drivers/build.hostapd @touch ../src/drivers/build.hostapd

View file

@ -26,7 +26,7 @@ verify_config:
fi fi
mkconfig: mkconfig:
@if [ -e .config ]; then \ @if [ -f .config ]; then \
echo '.config exists - did not replace it'; \ echo '.config exists - did not replace it'; \
exit 1; \ exit 1; \
fi fi
@ -1252,7 +1252,7 @@ endif
dynamic_eap_methods: $(EAPDYN) dynamic_eap_methods: $(EAPDYN)
../src/drivers/build.wpa_supplicant: ../src/drivers/build.wpa_supplicant:
@if [ -e ../src/drivers/build.hostapd ]; then \ @if [ -f ../src/drivers/build.hostapd ]; then \
$(MAKE) -C ../src/drivers clean; \ $(MAKE) -C ../src/drivers clean; \
fi fi
@touch ../src/drivers/build.wpa_supplicant @touch ../src/drivers/build.wpa_supplicant