[svn-commits] tzafrir: branch tzafrir/zaphelper r1629 - /team/tzafrir/zaphelper/zaptel.init

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Nov 21 11:56:59 MST 2006


Author: tzafrir
Date: Tue Nov 21 12:56:58 2006
New Revision: 1629

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1629
Log:
Indentation fixes.

Modified:
    team/tzafrir/zaphelper/zaptel.init

Modified: team/tzafrir/zaphelper/zaptel.init
URL: http://svn.digium.com/view/zaptel/team/tzafrir/zaphelper/zaptel.init?view=diff&rev=1629&r1=1628&r2=1629
==============================================================================
--- team/tzafrir/zaphelper/zaptel.init (original)
+++ team/tzafrir/zaphelper/zaptel.init Tue Nov 21 12:56:58 2006
@@ -15,21 +15,21 @@
 #
 system=redhat  # assume redhat
 if [ -f /etc/debian_version ]; then
-    system=debian
+	system=debian
 fi
 
 # Source function library.
 if [ $system = redhat ]; then
-    . $initdir/functions || exit 0
+	. $initdir/functions || exit 0
 fi
 
 # Source zaptel configuration.
 if [ $system = debian ]; then
-    [ -f /etc/default/zaptel ] && . /etc/default/zaptel
-	LOCKFILE=/var/lock/zaptel
+	[ -f /etc/default/zaptel ] && . /etc/default/zaptel
+		LOCKFILE=/var/lock/zaptel
 elif [ $system = redhat ]; then
-    [ -f /etc/sysconfig/zaptel ] && . /etc/sysconfig/zaptel
-	LOCKFILE=/var/lock/subsys/zaptel
+	[ -f /etc/sysconfig/zaptel ] && . /etc/sysconfig/zaptel
+		LOCKFILE=/var/lock/subsys/zaptel
 fi
 
 if [ -z "${MODULES}" ]; then 
@@ -40,7 +40,7 @@
 RMODULES=""
 # Reverse list for un-loading; don't change
 for x in $MODULES; do 
-    RMODULES="$x $RMODULES"
+	RMODULES="$x $RMODULES"
 done
 
 # Check that telephony is up.
@@ -58,17 +58,17 @@
 
 # See how we were called.
 case "$1" in
-  start)
+start)
 	# Load drivers
 	rmmod wcusb >& /dev/null
 	rmmod wcfxsusb >& /dev/null
 	rmmod audio >& /dev/null
 	if [ $system = debian ]; then
-	    echo -n "Loading zaptel framework: " 
-	    modprobe zaptel >& /dev/null && echo -n "done"
-	    echo "."
+		echo -n "Loading zaptel framework: " 
+		modprobe zaptel >& /dev/null && echo -n "done"
+		echo "."
 	elif [ $system = redhat ]; then
-	    action "Loading zaptel framework: " modprobe zaptel
+		action "Loading zaptel framework: " modprobe zaptel
 	fi
 	echo -n "Waiting for zap to come online..."
 	TMOUT=10 # max secs to wait
@@ -94,17 +94,17 @@
 		modprobe ztdummy >& /dev/null
 	fi
 	if [ $system = debian ]; then
-	    echo -n "Running ztcfg: " 
-	    /sbin/ztcfg >& /dev/null && echo -n "done"
-	    echo "."
+		echo -n "Running ztcfg: " 
+		/sbin/ztcfg >& /dev/null && echo -n "done"
+		echo "."
 	elif [ $system = redhat ]; then
-	    action "Running ztcfg: " /sbin/ztcfg
+		action "Running ztcfg: " /sbin/ztcfg
 	fi
 	RETVAL=$?
 
 	[ $RETVAL -eq 0 ] && touch $LOCKFILE
 	;;
-  stop)
+stop)
 	# Unload drivers
 	echo -n "Unloading zaptel hardware drivers:"
 	for x in $RMODULES; do 
@@ -115,31 +115,31 @@
 	echo "."
 
 	if [ $system = debian ]; then
-	    echo -n "Removing zaptel module: " 
-	    rmmod zaptel >& /dev/null && echo -n "done"
-	    echo "."
+		echo -n "Removing zaptel module: " 
+		rmmod zaptel >& /dev/null && echo -n "done"
+		echo "."
 	elif [ $system = redhat ]; then
-	    action "Removing zaptel module: " rmmod zaptel
+		action "Removing zaptel module: " rmmod zaptel
 	fi
 	RETVAL=$?
 
 	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
 	;;
-  restart)
+restart)
 	$0 stop
 	$0 start
 	;;
-  reload)
+reload)
 	if [ $system = debian ]; then
-	    echo -n "Reloading ztcfg: "
-	    /sbin/ztcfg >& /dev/null && echo -n "done"
-	    echo "."
+		echo -n "Reloading ztcfg: "
+		/sbin/ztcfg >& /dev/null && echo -n "done"
+		echo "."
 	elif [ $system = redhat ]; then
-	    action "Reloading ztcfg: " /sbin/ztcfg
+		action "Reloading ztcfg: " /sbin/ztcfg
 	fi
 	RETVAL=$?
 	;;
-  *)
+*)
 	echo "Usage: zaptel {start|stop|restart|reload}"
 	exit 1
 esac



More information about the svn-commits mailing list