source: trunk/debathena/config/dns-config/debian/debathena-dns-config.init @ 25672

Revision 25672, 777 bytes checked in by jdreed, 12 years ago (diff)
In dns-config: * Switch to dnsmasq instead of bind9 (Trac: #1131) * Don't add a mit.edu suffix if it's already there * Use IFACE.PROG format for the resolvconf profile * Bump Standards-Version * Make initscript LSB-compliant
Line 
1#!/bin/sh
2#
3### BEGIN INIT INFO
4# Provides:          debathena-dns-config
5# Required-Start:    resolvconf
6# Required-Stop:     resolvconf
7# Default-Start:     2 3 4 5
8# Default-Stop:      0 1 6
9# Short-Description: Debathena DNS configuration for MIT
10# Description:       This service provides a mit.edu search path to
11#                    resolvconf.
12### END INIT INFO
13#
14# This script is part of the debathena-dns-config package
15# See /usr/share/doc/debathena-dns-config/copyright
16
17[ -x /sbin/resolvconf ] || exit 0
18
19case "$1" in
20restart|start)
21        if ! egrep -qi '^[[:space:]]+dns-search mit.edu' /etc/network/interfaces; then
22            echo "search mit.edu" | /sbin/resolvconf -a lo.debathena-dns-config
23        fi
24        ;;
25
26stop|reload|force-reload)
27        ;;
28*)
29        echo "Unknown action: $1"
30        ;;
31esac
Note: See TracBrowser for help on using the repository browser.