packages: xinetd/xinetd.inet.sh - use case statement for multiple choices
glen
glen at pld-linux.org
Tue Jul 20 11:25:56 CEST 2010
Author: glen Date: Tue Jul 20 09:25:56 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- use case statement for multiple choices
---- Files affected:
packages/xinetd:
xinetd.inet.sh (1.14 -> 1.15)
---- Diffs:
================================================================
Index: packages/xinetd/xinetd.inet.sh
diff -u packages/xinetd/xinetd.inet.sh:1.14 packages/xinetd/xinetd.inet.sh:1.15
--- packages/xinetd/xinetd.inet.sh:1.14 Tue Jul 20 11:24:30 2010
+++ packages/xinetd/xinetd.inet.sh Tue Jul 20 11:25:50 2010
@@ -91,16 +91,19 @@
[ "${DAEMONARGS:-n}" = "n" ] || echo " server_args = $DAEMONARGS"
- for i in $FLAGS ; do
- if [ "$i" = "wait" ]; then
+ for i in $FLAGS; do
+ case "$i" in
+ wait)
echo " wait = yes"
- elif [ "$i" = "nowait" ]; then
+ ;;
+ nowait)
echo " wait = no"
[ "${MAX_CONNECTIONS:-n}" = "n" ] || echo " instances = $MAX_CONNECTIONS"
[ "${MAX_CONNECTIONS_PER_SOURCE:-n}" = "n" ] || echo " per_source = $MAX_CONNECTIONS_PER_SOURCE"
- else
+ *)
XFLAGS="$XFLAGS $i"
- fi
+ ;;
+ esac
done
[ "${XFLAGS:-n}" = "n" ] || echo " flags =$XFLAGS"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xinetd/xinetd.inet.sh?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list