File: 0dns-down

package info (click to toggle)
pppconfig 2.0.14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 160 kB
  • ctags: 77
  • sloc: perl: 1,517; sh: 82; makefile: 43
file content (20 lines) | stat: -rwxr-xr-x 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# 0dns-down by John Hasler 4 Apr 1999.  You may treat this program as if it
# was in the public domain.

# 0dns-down takes down what 0dns-up sets up.

# If pppconfig has been removed we are not supposed to do anything.

test -f /usr/sbin/pppconfig || exit 0

ETC="/etc"
RESOLVBAK="$ETC/resolv.conf.ppp.bak"
RESOLVCONF="$ETC/resolv.conf"

test -f "$RESOLVBAK" && mv $RESOLVBAK $RESOLVCONF
chmod 644 $RESOLVCONF
# Tell nscd about what we've done.
test -x /usr/sbin/nscd || exit 0
/usr/sbin/nscd -i hosts || exit 0