3 NETSFILE="/etc/tinc/nets.boot"
4 SYSTEM="/lib/systemd/system"
5 WANTS="/etc/systemd/system/multi-user.target.wants"
11 if dpkg --compare-versions "$2" '<<' "1.1~pre11-1"; then
12 if [ -f "$NETSFILE" ]; then
13 echo -n "Creating systemd service instances from nets.boot:"
15 egrep '^[ ]*[a-zA-Z0-9_-]+' $NETSFILE | while read net args; do
17 ln -s "$SYSTEM/tinc@.service" "$WANTS/tinc@$net.service" 2>/dev/null || true