From 0f20ba451b5b6c3b1dc39e2df823008635e5a266 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 4 May 2009 22:31:39 +0200 Subject: [PATCH] dhcpcd: fix service name in INSTALL/REMOVE scripts. --HG-- extra : convert_revision : 11b59d51287ca9393b1587c930905438dc60a807 --- templates/dhcpcd/INSTALL | 2 +- templates/dhcpcd/REMOVE | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/dhcpcd/INSTALL b/templates/dhcpcd/INSTALL index 4ce5d475729..0883f23d5c8 100644 --- a/templates/dhcpcd/INSTALL +++ b/templates/dhcpcd/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/dhcpcd/REMOVE b/templates/dhcpcd/REMOVE index ee5e566cbc3..3274e3af889 100644 --- a/templates/dhcpcd/REMOVE +++ b/templates/dhcpcd/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 $?