diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-07-04 19:06:06 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-07-04 19:06:06 +0000 |
commit | 13c4b632b0ca3ff225ea1ac0058e855119d26238 (patch) | |
tree | 6f72f1653b1ecb6888c4a0bd0b27a0f56c1fb3c1 /zaptel.init | |
parent | 4bf94127ff1852ee89dba401f13d6a7882f1a500 (diff) |
Bourne shell scripts should not use >& . dash doesn't support it.
And all of them simply supressed errors, so they were replaced with
2> /dev/null .
(from branches/1.2 r2689)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2690 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.init')
-rw-r--r-- | zaptel.init | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/zaptel.init b/zaptel.init index 612528b..0ffdf5c 100644 --- a/zaptel.init +++ b/zaptel.init @@ -179,7 +179,7 @@ hpec_start() { # zaphpec_enable properly installed if [ $system = debian ]; then echo -n "Running zaphpec_enable: " - /usr/sbin/zaphpec_enable >& /dev/null + /usr/sbin/zaphpec_enable 2> /dev/null elif [ $system = redhat ]; then action "Running zaphpec_enable: " /usr/sbin/zaphpec_enable fi @@ -217,12 +217,12 @@ RETVAL=0 case "$1" in start) # Load drivers - rmmod wcusb >& /dev/null - rmmod wcfxsusb >& /dev/null - rmmod audio >& /dev/null + rmmod wcusb 2> /dev/null + rmmod wcfxsusb 2> /dev/null + rmmod audio 2> /dev/null if [ $system = debian ]; then echo -n "Loading zaptel framework: " - modprobe zaptel ${ARGS} >& /dev/null && echo -n "done" + modprobe zaptel ${ARGS} 2> /dev/null && echo -n "done" echo "." elif [ $system = redhat ]; then action "Loading zaptel framework: " modprobe zaptel ${ARGS} @@ -241,7 +241,7 @@ case "$1" in echo -n "Loading zaptel hardware modules:" for x in $MODULES; do eval localARGS="\$${x}_ARGS" - if modprobe ${x} ${ARGS} ${localARGS} >& /dev/null; then + if modprobe ${x} ${ARGS} ${localARGS} 2> /dev/null; then echo -n " $x" echo "." fi @@ -256,11 +256,11 @@ case "$1" in if [ ! -e /proc/zaptel/1 ]; then echo "No functioning zap hardware found in /proc/zaptel, loading ztdummy" - modprobe ztdummy >& /dev/null + modprobe ztdummy 2> /dev/null fi if [ $system = debian ]; then echo -n "Running ztcfg: " - $ZTCFG >& /dev/null && echo -n "done" + $ZTCFG 2> /dev/null && echo -n "done" echo "." elif [ $system = redhat ]; then action "Running ztcfg: " $ZTCFG @@ -300,7 +300,7 @@ case "$1" in reload) if [ $system = debian ]; then echo -n "Reloading ztcfg: " - $ZTCFG >& /dev/null && echo -n "done" + $ZTCFG 2> /dev/null && echo -n "done" echo "." elif [ $system = redhat ]; then action "Reloading ztcfg: " $ZTCFG |