summaryrefslogtreecommitdiff
path: root/package/ppp/Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-07 18:21:51 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-10 10:45:27 +0100
commit4935edd89d6019323d7c67fd9692cebe0f110496 (patch)
treea09bdc84c9014813bfb0652452332167ef1e362f /package/ppp/Makefile
parent2d2cde54102a8cbb12753c7a67058154b6f9c035 (diff)
make installation of package network hooks optional
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Diffstat (limited to 'package/ppp/Makefile')
-rw-r--r--package/ppp/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/ppp/Makefile b/package/ppp/Makefile
index 591f3ca2a..2c71a603f 100644
--- a/package/ppp/Makefile
+++ b/package/ppp/Makefile
@@ -65,9 +65,11 @@ post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_BIN} ./files/pon ${IDIR_PPP}/usr/sbin/
${INSTALL_BIN} ./files/poff ${IDIR_PPP}/usr/sbin/
${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/peers
+ifeq (${ADK_INSTALL_PACKAGE_NETWORK_SCRIPTS},y)
$(INSTALL_DIR) ${IDIR_PPP}/etc/network/if-pre-up.d
$(INSTALL_BIN) ./files/ppp.pre-up \
${IDIR_PPP}/etc/network/if-pre-up.d/05-ppp
+endif
mod-radius-install:
${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
@@ -110,11 +112,13 @@ mod-pppumts-install:
${INSTALL_DIR} ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates
${INSTALL_DATA} ./files/etc/ppp/templates/umts \
${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates/
+ifeq (${ADK_INSTALL_PACKAGE_NETWORK_SCRIPTS},y)
$(INSTALL_DIR) ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-pre-up.d
$(INSTALL_DIR) ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-post-down.d
$(INSTALL_BIN) ./files/hso.if-up \
${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-pre-up.d/06-hso
$(INSTALL_BIN) ./files/hso.if-down \
${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-post-down.d/06-hso
+endif
include ${TOPDIR}/mk/pkg-bottom.mk