From: Michael Buesch Date: Tue, 6 Apr 2010 14:12:17 +0000 (+0300) Subject: hostapd: Use cp -f in make install X-Git-Tag: hostap_0_7_2~99 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libeap.git;a=commitdiff_plain;h=2c657c8dcd2cb4ebd0e8ff80228d72bc5c75d0d7 hostapd: Use cp -f in make install If hostapd is running, a make install fails with cp: cannot create regular file `/usr/local/bin/hostapd': Text file busy Use cp -f to avoid this error and force-override the file. Signed-off-by: Michael Buesch --- diff --git a/hostapd/Makefile b/hostapd/Makefile index c1891dc..17e2cae 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -728,7 +728,7 @@ verify_config: fi install: all - for i in $(ALL); do cp $$i /usr/local/bin/$$i; done + 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 \