#!/bin/bash if [ -d "/etc/backup/post.d" ]; then for H in $(find /etc/backup/post.d -type f -o -type l | sort); do [ -x $H ] && $H "$@" done fi # Remove the lock rm -f /var/lock/bkp.lock