Debian Codegraph @

contrib/netctl.install

raw
1 post_upgrade() {
2 if [[ $(vercmp 1.18 "$2") -gt 0 ]]; then
3 grep -ls '^.include ' /etc/systemd/system/netctl@*.service | \
4 while read -r unit; do
5 profile=$(systemd-escape --unescape "${unit:27:-8}")
6 echo ":: The unit for profile '$profile' uses deprecated features."
7 echo " Consider running: netctl reenable $(printf '%q' "$profile")"
8 done
9 fi
10 }