metalog: fix service name in INSTALL/REMOVE scripts.
--HG-- extra : convert_revision : 40b285acb49a2b5ebc1c89ef00ef78fd740aaaf7
This commit is contained in:
parent
a9b8499ac8
commit
ab62d12294
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ post)
|
||||||
[ ! -x sbin/rc-update ] && exit 0
|
[ ! -x sbin/rc-update ] && exit 0
|
||||||
[ ! -x sbin/rc-service ] && 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..."
|
echo "Registering ${PKGNAME} OpenRC service..."
|
||||||
sbin/rc-update add ${PKGNAME} default
|
sbin/rc-update add ${PKGNAME} default
|
||||||
[ $? -ne 0 ] && exit $?
|
[ $? -ne 0 ] && exit $?
|
||||||
|
|
|
@ -8,7 +8,7 @@ pre)
|
||||||
[ ! -x sbin/rc-update ] && exit 0
|
[ ! -x sbin/rc-update ] && exit 0
|
||||||
[ ! -x sbin/rc-service ] && 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..."
|
echo "Unregistering ${PKGNAME} OpenRC service..."
|
||||||
sbin/rc-update del ${PKGNAME} default
|
sbin/rc-update del ${PKGNAME} default
|
||||||
[ $? -ne 0 ] && exit $?
|
[ $? -ne 0 ] && exit $?
|
||||||
|
|
Loading…
Reference in a new issue