From df2922cc75319699b002550c444647e611a712d6 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 26 May 2009 09:55:06 +0000 Subject: Reword the message after 'make config' for the case no hardware found Check the output of dahdi_hardware and give a different message for the case it found no hardware. (closes issue #14792) Reported by: Dovid Patches: dahdi_hardware_nodev_make.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6657 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 172d184..33a0860 100644 --- a/Makefile +++ b/Makefile @@ -294,13 +294,17 @@ ifneq (,$(ADD_INITD)) endif @echo "DAHDI has been configured." @echo "" - @echo "If you have any DAHDI hardware it is now recommended you " - @echo "edit /etc/dahdi/modules in order to load support for only" - @echo "the DAHDI hardware installed in this system. By default " - @echo "support for all DAHDI hardware is loaded at DAHDI start. " + @echo "List of detected DAHDI devices:" @echo "" - @echo "I think that the DAHDI hardware you have on your system is:" - @xpp/dahdi_hardware || true + @if [ `xpp/dahdi_hardware | tee /dev/stderr | wc -l` -eq 0 ]; then \ + echo "No hardware found"; \ + else \ + @echo ""; \ + echo "run 'dahdi_genconf modules' to load support for only " ;\ + echo "the DAHDI hardware installed in this system. By "; \ + echo "default support for all DAHDI hardware is loaded at "; \ + echo "DAHDI start. "; \ + fi update: @if [ -d .svn ]; then \ -- cgit v1.2.3