summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2015-06-17 12:04:48 (GMT)
committerRichard Dale <richard.dale@codethink.co.uk>2015-06-17 12:04:48 (GMT)
commit0661092185028a9efde481929b6e912220df3c99 (patch)
tree4d1d282528290c5211c583da115888c6e6a32cfa
parentab39952506a64a2f7f8c6cb2b19e282d87d500e3 (diff)
downloaddefinitions-0661092185028a9efde481929b6e912220df3c99.tar.gz
Enable the services in /etc/init.d after installation
-rw-r--r--strata/cpe-wrt/base-files.morph6
1 files changed, 6 insertions, 0 deletions
diff --git a/strata/cpe-wrt/base-files.morph b/strata/cpe-wrt/base-files.morph
index ff3cece..c765a93 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