aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-05-15 18:33:05 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 10:43:42 +0100
commit60fd9974e5c9a0576059ebded6de7b599f9574e5 (patch)
tree1097b7301cd7784abe2401f5c6f3f0dd13f1e7ae /meta/recipes-core/sysvinit/sysvinit
parent60884b6bee6be7250caca2f229eda174bcefd959 (diff)
downloadopenembedded-core-contrib-60fd9974e5c9a0576059ebded6de7b599f9574e5.tar.gz
openembedded-core-contrib-60fd9974e5c9a0576059ebded6de7b599f9574e5.tar.bz2
openembedded-core-contrib-60fd9974e5c9a0576059ebded6de7b599f9574e5.zip
sysvinit: use new update-alternatives
Also remove postinst and prerm which were not being used. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit/postinst17
-rw-r--r--meta/recipes-core/sysvinit/sysvinit/prerm9
2 files changed, 0 insertions, 26 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/postinst b/meta/recipes-core/sysvinit/sysvinit/postinst
deleted file mode 100644
index b6fe547fa4..0000000000
--- a/meta/recipes-core/sysvinit/sysvinit/postinst
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/busybox ash
-
-action="$1"
-oldversion="$2"
-
-umask 022
-
-if [ "$action" != configure ]
-then
- exit 0
-fi
-
-update-alternatives --install /sbin/init init /sbin/sysvinit 25
-update-alternatives --install /sbin/need need /sbin/need.sysvinit 25
-update-alternatives --install /sbin/provide provide /sbin/provide.sysvinit 25
-
-exit 0
diff --git a/meta/recipes-core/sysvinit/sysvinit/prerm b/meta/recipes-core/sysvinit/sysvinit/prerm
deleted file mode 100644
index 704a29ffd5..0000000000
--- a/meta/recipes-core/sysvinit/sysvinit/prerm
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-if [ "$1" != "upgrade" ]; then
- update-alternatives --remove need /sbin/need.sysvinit
- update-alternatives --remove provide /sbin/provide.sysvinit
- update-alternatives --remove init /sbin/sysvinit
-fi
-
-exit 0