File: dns-clean

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 (28 lines) | stat: -rwxr-xr-x 599 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
22
23
24
25
26
27
28
#! /bin/sh

# dns-clean by John Hasler Wed Jun 30 1999.  You may treat
# this program as if it was in the public domain.

# This script should be run at bootup to clean up any mess left by 0dns-up.
# It should be run before ppp is started.
# It should never be run while ppp is up.

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

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

case "$1" in
  start)
	/bin/echo -n "Running 0dns-down to make sure resolv.conf is ok..."
	/etc/ppp/ip-down.d/0dns-down && /bin/echo "done."
	;;
  stop|restart|force-reload)
	;;
  *)
        ;;
esac

exit 0