File: resolvconf.000resolvconf.ppp.ip-down

package info (click to toggle)
resolvconf 1.94
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 544 kB
  • sloc: sh: 906; makefile: 19; sed: 13
file content (21 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# PPP down hook script for resolvconf
#
# Reconfigures resolver to take into account
# the disappearance of the ppp interface.
#
# This file is part of the resolvconf package.
#

[ -x /usr/sbin/resolvconf ] || exit 0

case "$6" in
  nm-pptp-service-*|nm-l2tp-service-*|/org/freedesktop/NetworkManager/PPP/*)
    # NetworkManager handles it
    exit 0
    ;;
esac

/usr/sbin/resolvconf -d "${PPP_IFACE}.pppd"