]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
rp-pppoe: bail out if installation fails
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:25 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 22:24:27 +0000 (23:24 +0100)
Add an "|| exit 1" in the installation loop, otherwise if one of the
file fails to install, the build doesn't abort.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/rp-pppoe/rp-pppoe.mk

index 682762870d76e666440b43108294205d5b7600e3..4e17f2d9fb9f32187a186c48d9a6fb2c638c0aab 100644 (file)
@@ -19,7 +19,7 @@ RP_PPPOE_CONF_ENV = \
 
 define RP_PPPOE_INSTALL_TARGET_CMDS
        for ff in $(RP_PPPOE_TARGET_FILES); do \
-               $(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff; \
+               $(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
        done
 endef