You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
206 B

#!/bin/sh
ACTION=${1}
if [ -d "/etc/dehydrated/hooks_"$ACTION".d" ]; then
shift
for H in $(find /etc/dehydrated/hooks_"$ACTION".d/ -type f -o -type l | sort); do
[ -x $H ] && exec $H $@
done
fi