Files
2017-11-15 23:31:47 +00:00

15 lines
329 B
Bash
Executable File

#!/bin/bash
prefix="$1"
# Try to run all hooks in /usr/libexec/updater
for f in "${prefix}"/usr/libexec/updater/*hook.sh ; do
if [ -x "$f" ] && [ -f "$f" ]; then
if [ "$prefix" == "/" ]; then
"$f" &> /dev/null
else
chroot "$prefix" "${f#$prefix}" &> /dev/null
fi
fi
done