hostapd: Use cp -f in make install
authorMichael Buesch <mb@bu3sch.de>
Tue, 6 Apr 2010 14:12:17 +0000 (17:12 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Apr 2010 14:12:17 +0000 (17:12 +0300)
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 <mb@bu3sch.de>
hostapd/Makefile

index c1891dc..17e2cae 100644 (file)
@@ -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 \