diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-07-04 19:00:51 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-07-04 19:00:51 +0000 |
commit | 125e348ee298a3a09fdd1f22f7388ca96e370f3d (patch) | |
tree | bee43b4834e9b7ed9c01ea921b4379447b2c0d1d /zaptel.init | |
parent | ac39d61952ace14dc9b31a3250d9960be2c3b5f8 (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 .
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2689 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 bc9c964..a608d20 100644 --- a/zaptel.init +++ b/zaptel.init @@ -174,7 +174,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 @@ -205,12 +205,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} @@ -229,7 +229,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 @@ -244,11 +244,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 @@ -281,7 +281,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 |