openbsd-ports/net/netatalk/pkg/netatalk.rc
2012-04-22 13:44:09 +00:00

19 lines
405 B
Bash

#!/bin/sh
#
# $OpenBSD: netatalk.rc,v 1.2 2012/04/22 13:44:09 ajacoutot Exp $
# "meta" script running the following rc.d(8) scripts with the given argument
_pkg_scripts="cnid_metad afpd"
set -A _s -- ${_pkg_scripts}
if [ "$1" = stop ]; then
i=$(echo ${_pkg_scripts} | wc -w)
while [ $i -ne 0 ]; do
i=$((i-1))
${RCDIR}/${_s[$i]} $1
done
else
for i in ${_pkg_scripts}; do ${RCDIR}/$i $1; done
fi