udev: use $openrc_services and its triggers.

--HG--
extra : convert_revision : 4d0a82f7dba6df89e882022c26c96eed08f412ae
This commit is contained in:
Juan RP 2009-05-04 23:19:48 +02:00
parent e5c0f632d0
commit 21f2782f99
3 changed files with 4 additions and 40 deletions

View File

@ -1,20 +0,0 @@
#
# This script registers the udev service into the
# 'sysinit' runlevel, as required by OpenRC.
#
case "${ACTION}" in
pre)
;;
post)
[ ! -x sbin/rc-update ] && exit 0
[ ! -x sbin/rc-service ] && exit 0
if sbin/rc-service -e udev; then
echo "Registering udev OpenRC service..."
sbin/rc-update add udev sysinit
[ $? -ne 0 ] && exit $?
sbin/rc-update -u
fi
;;
esac

View File

@ -1,20 +0,0 @@
#
# This script unregisters the udev service from the
# 'sysinit' runlevel, as required by OpenRC.
#
case "${ACTION}" in
pre)
[ ! -x sbin/rc-update ] && exit 0
[ ! -x sbin/rc-service ] && exit 0
if sbin/rc-service -e udev; then
echo "Unregistering udev OpenRC service..."
sbin/rc-update del udev sysinit
[ $? -ne 0 ] && exit $?
sbin/rc-update -u
fi
;;
post)
;;
esac

View File

@ -13,8 +13,12 @@ long_desc="
udev is a implementation of devfs in userspace using sysfs and
/sbin/hotplug. It requires a 2.5/2.6 kernel to run properly."
openrc_services="udev sysinit"
triggers="openrc-service"
Add_dependency full glibc
Add_dependency full procps
Add_dependency full OpenRC
post_install()
{