summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-02 23:18:23 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-02 23:18:23 (EDT)
commit57f175ae5f51376c2657a2b733388eada6296931 (patch)
tree233a5e08ec22d4944dee61e958fbc292bb967d49 /busybox.pkg/postinst
parentf57ca38e1627d7228a10093e3e21dcf5b5091354 (diff)
Make most of the /etc/rc.d/ links at install time.
Diffstat (limited to 'busybox.pkg/postinst')
-rwxr-xr-xbusybox.pkg/postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index d74c331..99b8006 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -5,6 +5,11 @@ if [ "x${1}" = 'xconfigure' ]; then
update-alternatives --install "${link}" "${name}" \
"${link}.busybox" "${prio}"
done </usr/share/busybox/alternatives
+ if [ -e /usr/share/busybox/init-scripts ]; then
+ while read script; do
+ "/etc/init.d/${script}" enable
+ done </usr/share/busybox/init-scripts
+ fi
if [ -d /etc/network ] && ! [ -f /etc/network/interfaces ]; then
exec 3>/etc/network/interfaces
printf 'auto lo\niface lo inet loopback\n\n' >&3