/etc/init.d/isdnutils-base is in isdnutils-base 1:3.25+dfsg1-3.7ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | #!/bin/sh
### BEGIN INIT INFO
# Provides: isdnutils-base
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: capiutils
# Should-Stop: capiutils
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
#
# You don't need to change this file!
#
# Please read /usr/share/doc/isdnutils-base/README.debian
# and /usr/share/doc/isdnutils-base/CONFIG.gz .
#
# This script stops/starts ALL ISDN stuff (including isdnlog, if installed).
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/isdnctrl
NAME=isdnutils-base
DESC='ISDN services'
FLAGS="defaults"
test -f $DAEMON || exit 0 # sanity check
. /lib/lsb/init-functions
set -e
# source the function definitions for stopping / starting the various parts
. /etc/isdn/init.d.functions
# isdn_verbose=true # default is set by VERBOSE in /etc/default/rcS
case "$1" in
start)
if [ ! -z "$2" ]; then
service="$2"
case "$service" in
ipppd|isdnlog) ;;
*) log_failure_msg "Unknown ISDN service to start: $2"; exit 1
esac
[ -s /usr/sbin/$service ] || exit 0
log_begin_msg "Starting $service..."
start_$service
log_end_msg $?
exit 0
fi
log_begin_msg "Starting $DESC..."
start_devices
if [ -s /usr/sbin/ipppd ]; then start_ipppd; fi
if [ -x /usr/sbin/ipmasq ]; then /usr/sbin/ipmasq; fi
start_iprofd
if [ -s /usr/sbin/isdnlog ]; then start_isdnlog; fi
log_end_msg 0
;;
stop)
if [ ! -z "$2" ]; then
service="$2"
case "$service" in
ipppd|isdnlog) ;;
*) log_failure_msg "Unknown ISDN service to stop: $2"; exit 1
esac
[ -s /usr/sbin/$service ] || exit 0
log_begin_msg "Stopping $service..."
stop_$service
log_end_msg $?
exit 0
fi
log_begin_msg "Stopping $DESC..."
stop_iprofd
if [ -s /usr/sbin/ipppd ]; then stop_ipppd; fi
stop_devices
if [ -x /usr/sbin/ipmasq ]; then /usr/sbin/ipmasq; fi
if [ -s /usr/sbin/isdnlog ]; then stop_isdnlog; fi
log_end_msg 0
;;
reload)
if [ ! -z "$2" ]; then
service="$2"
case "$service" in
ipppd|isdnlog) ;;
*) log_failure_msg "Unknown ISDN service to stop: $2"; exit 1
esac
isdn_verbose=false
[ -s /usr/sbin/$service ] || exit 0
log_begin_msg "Restarting $service..."
reload_$service || ( stop_$service; start_$service )
log_end_msg $?
exit 0
fi
log_warning_msg "Sorry, reload can only be done explicitly for ipppd and isdnlog."
log_warning_msg 'Run "/etc/init.d/isdnutils-base reload ipppd" for example.'
exit 1
;;
restart|force-reload)
# reload doesn't really work for some daemons...
log_begin_msg "Restarting $DESC:"
isdn_verbose=false
stop_iprofd
if [ -s /usr/sbin/ipppd ]; then stop_ipppd; fi
if [ -s /usr/sbin/isdnlog ]; then stop_isdnlog; start_isdnlog; fi
stop_devices; start_devices
if [ -s /usr/sbin/ipppd ]; then start_ipppd; fi
if [ -x /usr/sbin/ipmasq ]; then /usr/sbin/ipmasq; fi
start_iprofd
log_end_msg 0
;;
*)
log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|reload}"
exit 1
;;
esac
list_unconfigured
exit 0
# vim:set ts=8 sw=4:
|