File: netctl.install

package info (click to toggle)
netctl 1.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 596 kB
  • sloc: sh: 814; makefile: 72
file content (10 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
post_upgrade() {
    if [[ $(vercmp 1.18 "$2") -gt 0 ]]; then
        grep -ls '^.include ' /etc/systemd/system/netctl@*.service | \
          while read -r unit; do
            profile=$(systemd-escape --unescape "${unit:27:-8}")
            echo ":: The unit for profile '$profile' uses deprecated features."
            echo "   Consider running: netctl reenable $(printf '%q' "$profile")"
        done
    fi
}