diff options
author | Karolin Seeger <kseeger@samba.org> | 2009-01-05 16:33:00 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-01-05 16:34:05 +0100 |
commit | 2e09746a4db4186c9d648370b9004971bc18e5c9 (patch) | |
tree | 28d3e1018110f0646835963b173a5165ce6a95a9 | |
parent | 997f0fdaddfa4cd433dc13de33f780c4672872de (diff) | |
download | samba-2e09746a4db4186c9d648370b9004971bc18e5c9.tar.gz samba-2e09746a4db4186c9d648370b9004971bc18e5c9.tar.bz2 samba-2e09746a4db4186c9d648370b9004971bc18e5c9.zip |
examples: Avoid bashism in perfcount.init.
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
-rwxr-xr-x | examples/perfcounter/perfcountd.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/perfcounter/perfcountd.init b/examples/perfcounter/perfcountd.init index b82aea9230..0beff96227 100755 --- a/examples/perfcounter/perfcountd.init +++ b/examples/perfcounter/perfcountd.init @@ -24,14 +24,14 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin killproc() { pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'` - if [ "$pid" != "" ]; then + if [ x"$pid" != "x" ]; then kill $pid fi } # Start/stop processes -case "$1" +case "$1" in start) /opt/samba/bin/perfcount -d -f /var/lib/samba/perfmon 2> /dev/null @@ -47,7 +47,7 @@ stop) status) pid=`ps aux | grep perfcount | egrep -v '(grep|perfcountd)' | awk '{print $2}'` - if [ "$pid" == "" ]; then + if [ x"$pid" = "x" ]; then echo "Dead!" exit 2; fi |