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.

11 lines
201 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 ] && $H $@
done
fi