From 0661092185028a9efde481929b6e912220df3c99 Mon Sep 17 00:00:00 2001 From: Richard Dale Date: Wed, 17 Jun 2015 13:04:48 +0100 Subject: Enable the services in /etc/init.d after installation --- strata/cpe-wrt/base-files.morph | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/strata/cpe-wrt/base-files.morph b/strata/cpe-wrt/base-files.morph index ff3cecef..c765a937 100644 --- a/strata/cpe-wrt/base-files.morph +++ b/strata/cpe-wrt/base-files.morph @@ -38,3 +38,9 @@ install-commands: - sed -i "s/^#\toption ubus/\toption ubus/" package/network/services/uhttpd/files/uhttpd.config - install package/network/services/uhttpd/files/uhttpd.config "$DESTDIR"/etc/config/uhttpd - install package/system/rpcd/files/rpcd.config "$DESTDIR"/etc/config/rpcd + +post-install-commands: +- | + for FILE in "$DESTDIR"/etc/init.d/* ; do + IPKG_INSTROOT="$DESTDIR" bash "$DESTDIR"/etc/rc.common "$FILE" enable + done -- cgit v1.2.1