#!/bin/bash
#
# kudzu		This scripts runs the kudzu hardware probe.
#
# chkconfig: 345 05 95
# description: 	Detects if there are now Sangoma DSP modules and 
#		creates /etc/sysconfig/network-* files for them

# Source function library.
. /etc/init.d/functions

RETVAL=0

case "$1" in
 start)
	echo $"Checking for Sangoma DSP changes"

	# We don't want to run this on random runlevel changes.
	touch /var/lock/subsys/sng-initnetwork
	/usr/local/sng/scripts/sng-setnetwork --dsp-only
	;;
 status)
 	if [ -f /var/lock/subsys/sng-initnetwork ]; then
	  echo $"sng-initnetwork has run"
	  exit 0
	fi
	echo $"sng-initnetwork is stopped"
	exit 3
	;;
 stop)
 	;;
 *)
 	echo $"Usage: $0 {start|stop}"
	exit 1
	;;
esac

exit $RETVAL
