PageRenderTime 58ms CodeModel.GetById 54ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/rc4.d/S70dns-clean

http://github.com/brinkman83/bashrc
Shell | 49 lines | 18 code | 12 blank | 19 comment | 7 complexity | 0891334491535dc069295640056d692d MD5 | raw file
 1#! /bin/sh
 2
 3# $Id: dns-clean,v 1.1.1.1 2004/05/07 03:12:59 john Exp $
 4
 5# dns-clean by John Hasler 1999-2003
 6# Any possessor of a copy of this program may treat it as if it
 7# were in the public domain.  I waive all rights.
 8
 9# This script should be run at bootup to clean up any mess left by 0dns-up.
10# It should be run before ppp is started.
11# It should never be run while ppp is up.
12
13### BEGIN INIT INFO
14# Provides:          dns-clean
15# Required-Start:    $local_fs gdm
16# Required-Stop:     $local_fs
17# Default-Start:     1 2 3 4 5
18# Default-Stop:
19# Short-Description: Cleans up any mess left by 0dns-up
20# Description: 0dns-up often leaves behind some cruft. This Script is meant
21#              to clean up any such mess.
22### END INIT INFO
23
24PATH=/sbin:/bin:/usr/sbin:/usr/bin
25
26test -f /usr/sbin/pppconfig || exit 0
27# We might have a tmpfs /var/run.
28mkdir /var/run/pppconfig >/dev/null 2>&1 || true
29test -f /etc/ppp/ip-down.d/0dns-down || exit 0
30
31. /lib/lsb/init-functions
32. /etc/default/rcS
33
34case "$1" in
35  start)
36	[ "$VERBOSE" != no ] && log_begin_msg "Restoring resolver state..."
37	/etc/ppp/ip-down.d/0dns-down "0dns-clean"
38	[ "$VERBOSE" != no ] && log_end_msg $?
39	;;
40  stop|restart|force-reload)
41	;;
42  *)
43        ;;
44esac
45
46exit 0
47
48
49