diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-05-26 09:55:06 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-05-26 09:55:06 +0000 |
commit | df2922cc75319699b002550c444647e611a712d6 (patch) | |
tree | a5a639e202f10dca3ce0f353fd30cae14a245f23 | |
parent | 17342e0bf5d5cc2fb6425b2affc4ce850657ba1e (diff) |
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
-rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 \ |