use run-parts

This commit is contained in:
Martin Ness 2015-10-07 01:32:09 +02:00
parent f8e447a4b8
commit 096bb37f05

View file

@ -13,9 +13,7 @@ while true; do
read state < "$DEV"
case "$state" in
ON|HALF|OFF)
for f in $(find -O3 -P "$DIR" -type f -executable | sort -n); do
"$f" "$state" || echo "File $f exited with error $?"
done
run-parts --arg="$state" "$DIR"
;;
esac
else