summaryrefslogtreecommitdiffstats
path: root/busybox.pkg
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-02 23:43:58 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-02 23:43:58 (EDT)
commitaaea4241bd7c846036c8830e810a14895a02c9ac (patch)
treee29823d12380798ce24f81498d0f297e20d78862 /busybox.pkg
parent57f175ae5f51376c2657a2b733388eada6296931 (diff)
Conditionally disable service starting.
Diffstat (limited to 'busybox.pkg')
-rwxr-xr-xbusybox.pkg/postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index 99b8006..c499f03 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -5,6 +5,13 @@ if [ "x${1}" = 'xconfigure' ]; then
update-alternatives --install "${link}" "${name}" \
"${link}.busybox" "${prio}"
done </usr/share/busybox/alternatives
+ if ! [ -e /etc/rc.policy ]; then
+ if [ "x$(cat /etc/proteanos_plat)" = 'xdev' ]; then
+ printf 'disabled' >/etc/rc.policy
+ else
+ printf 'enabled' >/etc/rc.policy
+ fi
+ fi
if [ -e /usr/share/busybox/init-scripts ]; then
while read script; do
"/etc/init.d/${script}" enable