OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 20-Jul-2005 22:05:25
Branch: HEAD Handle: 2005072021052400
Modified files:
openpkg-src/bacula bconsole.sh
Log:
a few more script cosmetics and removal of redundancy
Summary:
Revision Changes Path
1.2 +5 -8 openpkg-src/bacula/bconsole.sh
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/bacula/bconsole.sh
============================================================================
$ cvs diff -u -r1.1 -r1.2 bconsole.sh
--- openpkg-src/bacula/bconsole.sh 20 Jul 2005 11:36:10 -0000 1.1
+++ openpkg-src/bacula/bconsole.sh 20 Jul 2005 20:05:24 -0000 1.2
@@ -1,13 +1,10 @@
#!/bin/sh
-if [ $# = 1 ] ; then
+if [ $# = 1 ]; then
case "$1" in
- -*) ;;
- *) echo "doing bconsole $1.conf"
- @l_prefix@/sbin/bconsole -c $1.conf
- exit;;
+ -* ) ;;
+ * ) set -- -c $1.conf ;;
esac
fi
-
-# The following works, because bconsole accepts multiple '-c' options.
-# The last '-c' wins.
+# The following works, because bconsole accepts multiple '-c' options.
+# The last '-c' wins.
exec @l_prefix@/sbin/bconsole -c @l_prefix@/etc/bacula/bconsole.conf "$@"
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]