vp-build/templates/dhcpcd/INSTALL
Juan RP 0f20ba451b dhcpcd: fix service name in INSTALL/REMOVE scripts.
--HG--
extra : convert_revision : 11b59d51287ca9393b1587c930905438dc60a807
2009-05-04 22:31:39 +02:00

21 lines
398 B
Plaintext

#
# This script registers the dhcpcd service into the
# 'default' 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 ${PKGNAME}; then
echo "Registering ${PKGNAME} OpenRC service..."
sbin/rc-update add ${PKGNAME} default
[ $? -ne 0 ] && exit $?
sbin/rc-update -u
fi
;;
esac