diff options
author | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-17 13:04:48 +0100 |
---|---|---|
committer | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-17 13:04:48 +0100 |
commit | 0661092185028a9efde481929b6e912220df3c99 (patch) | |
tree | 4d1d282528290c5211c583da115888c6e6a32cfa | |
parent | ab39952506a64a2f7f8c6cb2b19e282d87d500e3 (diff) | |
download | definitions-0661092185028a9efde481929b6e912220df3c99.tar.gz |
Enable the services in /etc/init.d after installation
-rw-r--r-- | strata/cpe-wrt/base-files.morph | 6 |
1 files changed, 6 insertions, 0 deletions
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 |