File: openresolv.resolvconf.if-down

package info (click to toggle)
openresolv 3.16.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: sh: 2,332; makefile: 125
file content (11 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# ifdown hook script for resolvconf
# Written by Roy Marples <roy@marples.name> under the BSD-2 license

[ -x /usr/sbin/resolvconf ] || exit 0
case "$ADDRFAM" in
	inet|inet6) : ;;
	*) exit 0;;
esac
[ "$METHOD" = dhcp ] && /usr/sbin/resolvconf -f -d "$IFACE"
/usr/sbin/resolvconf -f -d "$IFACE.$ADDRFAM"