rc2dinit/postprocess.sh
MahnoKropotkinvich 67addcc131 modified
2025-05-09 04:44:34 +00:00

10 lines
303 B
Bash
Executable File

#!/bin/sh
while read -r service; do
read -r before
if [ -f "/etc/dinit.d/$before" ]; then
echo "waits-for = $service" >> "/etc/dinit.d/$before"
else
echo "Warning: Service $before not found, skipping waits-for directive" >&2
fi
done < /tmp/before-list
rm /tmp/before-list