From ab62d1229400e37b5521852d9cca2ecb9d12209a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 4 May 2009 22:30:53 +0200 Subject: [PATCH] metalog: fix service name in INSTALL/REMOVE scripts. --HG-- extra : convert_revision : 40b285acb49a2b5ebc1c89ef00ef78fd740aaaf7 --- templates/metalog/INSTALL | 2 +- templates/metalog/REMOVE | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/metalog/INSTALL b/templates/metalog/INSTALL index fda9469b7c..97502a77a6 100644 --- a/templates/metalog/INSTALL +++ b/templates/metalog/INSTALL @@ -10,7 +10,7 @@ post) [ ! -x sbin/rc-update ] && exit 0 [ ! -x sbin/rc-service ] && exit 0 - if sbin/rc-service -e udev; then + if sbin/rc-service -e ${PKGNAME}; then echo "Registering ${PKGNAME} OpenRC service..." sbin/rc-update add ${PKGNAME} default [ $? -ne 0 ] && exit $? diff --git a/templates/metalog/REMOVE b/templates/metalog/REMOVE index a487ab0e99..950cb99a3d 100644 --- a/templates/metalog/REMOVE +++ b/templates/metalog/REMOVE @@ -8,7 +8,7 @@ pre) [ ! -x sbin/rc-update ] && exit 0 [ ! -x sbin/rc-service ] && exit 0 - if sbin/rc-service -e udev; then + if sbin/rc-service -e ${PKGNAME}; then echo "Unregistering ${PKGNAME} OpenRC service..." sbin/rc-update del ${PKGNAME} default [ $? -ne 0 ] && exit $?