From 23bc24e215ce8d6759595e5c3ae65785004739dd Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 7 Jul 2008 21:10:58 +0000 Subject: Add commented out module names in init.conf and update the init script to report when the MODULES parameter is empty at dahdi start. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4564 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- Makefile | 4 ++-- dahdi.init | 6 ++++++ init.conf | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f73dce7..8faf4ab 100644 --- a/Makefile +++ b/Makefile @@ -267,8 +267,8 @@ endif @echo "DAHDI has been configured." @echo "" @echo "If you have any DAHDI hardware it is now recommended to " - @echo "edit /etc/default/dahdi or /etc/sysconfig/dahdi and set there an " - @echo "optimal value for the variable MODULES ." + @echo "edit /etc/dahdi/init.conf and set there an optimal value " + @echo "for the variable MODULES ." @echo "" @echo "I think that the DAHDI hardware you have on your system is:" @kernel/xpp/utils/dahdi_hardware || true diff --git a/dahdi.init b/dahdi.init index 8d290bf..5d73bbc 100755 --- a/dahdi.init +++ b/dahdi.init @@ -149,6 +149,12 @@ RETVAL=0 case "$1" in start) # Load drivers + if [ -z $MODULES ]; then + echo "There aren't any DAHDI hardware modules specified to " + echo "load. Please update /etc/dahdi/init.conf in order to " + echo "specify the modules to load." + exit 1 + fi echo -n "Loading DAHDI hardware modules:" for x in $MODULES; do eval localARGS="\$${x}_ARGS" diff --git a/init.conf b/init.conf index 78ca86e..3f24fa8 100644 --- a/init.conf +++ b/init.conf @@ -11,3 +11,29 @@ # Override settings for xpp_fxloader #XPP_FIRMWARE_DIR=/usr/share/dahdi #XPP_HOTPLUG_DISABLED=yes + +# By default, DAHDI will not load any modules. Please uncomment the +# as per your requirements; modules to load/unload +#Module Name Hardware +#MODULES="$MODULES wct4xxp" # TE405P - Quad Span T1/E1 Card (5v version) + # TE410P - Quad Span T1/E1 Card (3.3v version) +#wct4xxp_ARGS="t1e1override=15" # Additional parameters for TE4xxP driver +# or use /etc/modprobe.d/zaptel or /etc/modprobe.conf . + +#MODULES="$MODULES wcte12xp" # TE120P - Single Span T1/E1 Card + +#MODULES="$MODULES wct1xxp" # T100P - Single Span T1 Card + # E100P - Single Span E1 Card + +#MODULES="$MODULES wcte11xp" # TE110P - Single Span T1/E1 Card + +#MODULES="$MODULES wctdm24xxp" # TDM2400P - Modular FXS/FXO interface (1-24 ports) + +#MODULES="$MODULES wcfxo" # X100P - Single port FXO interface + # X101P - Single port FXO interface + +#MODULES="$MODULES wctdm" # TDM400P - Modular FXS/FXO interface (1-4 ports) + +#MODULES="$MODULES dahdi_dummy" # Zaptel Timing Only Interface + +#MODULES="$MODULES xpp_usb" # Xorcom Astribank Device -- cgit v1.2.3