diff options
author | Sean Bright <sean@malleable.com> | 2008-10-09 19:00:25 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2008-10-09 19:00:25 +0000 |
commit | 02d482c25766a6d4100319e6309d23953f8f2206 (patch) | |
tree | 3dfea39ac0cd4cffbedbeb2468b35436fdb87eae /dahdi.init | |
parent | 163bf39527c82edc314f6a26c4236d165057eeaa (diff) |
Return the appropriate values to indicate if the modules are loaded or not.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5074 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi.init')
-rwxr-xr-x | dahdi.init | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -243,7 +243,12 @@ case "$1" in RETVAL=$? ;; status) - /usr/sbin/lsdahdi + if [ -d /proc/dahdi ]; then + /usr/sbin/lsdahdi + RETVAL=0 + else + RETVAL=3 + fi ;; *) echo "Usage: dahdi {start|stop|restart|status|reload|unload}" |