diff --git a/templates/udev/INSTALL b/templates/udev/INSTALL deleted file mode 100644 index 0b782c3b863..00000000000 --- a/templates/udev/INSTALL +++ /dev/null @@ -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 diff --git a/templates/udev/REMOVE b/templates/udev/REMOVE deleted file mode 100644 index b0a075fa14b..00000000000 --- a/templates/udev/REMOVE +++ /dev/null @@ -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 diff --git a/templates/udev/template b/templates/udev/template index 72808b664f2..84883afb3cc 100644 --- a/templates/udev/template +++ b/templates/udev/template @@ -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() {