Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Skip blank lines in the input file (mixerctl.conf).



details:   https://anonhg.NetBSD.org/src/rev/841d0c0c1579
branches:  trunk
changeset: 534090:841d0c0c1579
user:      rafal <rafal%NetBSD.org@localhost>
date:      Tue Jul 16 03:24:24 2002 +0000

description:
Skip blank lines in the input file (mixerctl.conf).

diffstat:

 etc/rc.d/mixerctl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r dfc201d9e4c1 -r 841d0c0c1579 etc/rc.d/mixerctl
--- a/etc/rc.d/mixerctl Tue Jul 16 00:40:51 2002 +0000
+++ b/etc/rc.d/mixerctl Tue Jul 16 03:24:24 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: mixerctl,v 1.3 2002/06/11 16:31:41 lukem Exp $
+# $NetBSD: mixerctl,v 1.4 2002/07/16 03:24:24 rafal Exp $
 #
 
 # PROVIDE: mixerctl
@@ -17,7 +17,7 @@
        if [ -r /etc/mixerctl.conf ]; then
                echo "Setting mixerctl variables..."
                while read setting; do
-                       mixerctl -n -w $setting
+                       [ -z "$setting" ] || mixerctl -n -w $setting
                done < /etc/mixerctl.conf
        fi
 }



Home | Main Index | Thread Index | Old Index