summaryrefslogtreecommitdiff
path: root/packages/sysvinit
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-07 19:40:07 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-07 19:40:07 +0000
commit267f73fc8c6c3d1cc41186e1bf1983c2451a3eeb (patch)
tree8502cc6b8c07b9859509e713276a3c04a1b9ede3 /packages/sysvinit
parent822ec89c5588ea9152ffd597a7ac178de4029ae6 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/07 19:13:04+00:00 (none)!cwiiis Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into cwiiisdesktop.(none):/home/cwiiis/oe/openembedded 2005/01/07 19:12:40+00:00 (none)!cwiiis Add new package 'unionroot' that allows for a unionfs root. 2005/01/07 20:01:34+01:00 dyndns.org!reenoo mplayer_1.0pre6: add --disable-live to EXTRA_OECONF BKrev: 41dee597jCPPlI-5Tq42er9Euwaj7w
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"