From 047099d822f885478dfb94ce8dbe45d379f0e8b0 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 19 Nov 2008 21:16:35 +0000 Subject: LSB init script comments. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5334 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- dahdi.init | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dahdi.init b/dahdi.init index 763e32a..0805f33 100755 --- a/dahdi.init +++ b/dahdi.init @@ -8,6 +8,17 @@ # # config: /etc/dahdi/init.conf +### BEGIN INIT INFO +# Provides: dahdi +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Should-Start: $network $syslog +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: dahdi - load and configure DAHDI modules +### END INIT INFO + initdir=/etc/init.d # Don't edit the following values. Edit /etc/dahdi/init.conf instead. @@ -149,6 +160,9 @@ RETVAL=0 # See how we were called. case "$1" in start) + # Some systems, e.g. Debian Lenny, add here -b, which will break + # loading of modules blacklisted in modprobe.d/* + unset MODPROBE_OPTIONS modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2>/dev/null` #if [ "$modules" = '' ]; then # what? -- cgit v1.2.3