summaryrefslogtreecommitdiff
path: root/packages/sysvinit
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sysvinit')
-rw-r--r--packages/sysvinit/sysvinit_2.86.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/sysvinit/sysvinit_2.86.bb b/packages/sysvinit/sysvinit_2.86.bb
index 8955e58b11..c69167b611 100644
--- a/packages/sysvinit/sysvinit_2.86.bb
+++ b/packages/sysvinit/sysvinit_2.86.bb
@@ -5,7 +5,7 @@ MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
FILES_${PN} += "/sbin /bin"
-PR = "r2"
+PR = "r3"
# USE_VT and SERIAL_CONSLE are generally defined by the MACHINE .conf.
# Set PACKAGE_ARCH appropriately.
@@ -72,6 +72,7 @@ EOF
install -d ${D}/etc/rc$level.d
ln -s ../init.d/stop-bootlogd ${D}/etc/rc$level.d/S99stop-bootlogd
done
+ mv ${D}/sbin/init ${D}/sbin/init.sysvinit
}
@@ -86,6 +87,14 @@ v1:2345:respawn:/sbin/getty -L 115200 vc/1
EOF
}
+pkg_postinstall_sysvinit () {
+ update-alternatives --install /sbin/init init /sbin/init.sysvinit 50
+}
+
+pkg_postrm_sysvinit () {
+ update-alternatives --remove init /sbin/init.sysvinit
+}
+
PACKAGES =+ "sysvinit-pidof sysvinit-sulogin"
FILES_sysvinit-pidof = "/bin/pidof"
FILES_sysvinit-sulogin = "/sbin/sulogin"