summaryrefslogtreecommitdiff
path: root/dahdi.init
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2008-10-09 18:27:07 +0000
committerSean Bright <sean@malleable.com>2008-10-09 18:27:07 +0000
commit163bf39527c82edc314f6a26c4236d165057eeaa (patch)
tree8c794a539e8759cefea68ffb2e56b7c987225a4d /dahdi.init
parent4638049260e6a39ee1db292ab4c2b206bcb88f64 (diff)
Add a status command to the DAHDI init script.
(closes issue #13655) Reported by: jcollie Patches: 0001-Add-a-trivial-status-command-to-the-init-script.patch uploaded by jcollie (license 412) (Slight modification by me to update the usage text) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5072 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi.init')
-rwxr-xr-xdahdi.init5
1 files changed, 4 insertions, 1 deletions
diff --git a/dahdi.init b/dahdi.init
index e6b8608..03180b7 100755
--- a/dahdi.init
+++ b/dahdi.init
@@ -242,8 +242,11 @@ case "$1" in
fi
RETVAL=$?
;;
+ status)
+ /usr/sbin/lsdahdi
+ ;;
*)
- echo "Usage: dahdi {start|stop|restart|reload|unload}"
+ echo "Usage: dahdi {start|stop|restart|status|reload|unload}"
exit 1
esac