fixed detection of commented lines in config-files; formerly, only a
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 8 Aug 2005 22:15:38 +0000 (22:15 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 8 Aug 2005 22:15:38 +0000 (22:15 +0000)
single '#' was detected which does not really make sense for comments...

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2170 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.functions

index 73558ee..e914133 100644 (file)
@@ -140,7 +140,7 @@ function _generateCCapabilityOptions
     test -e "$f" || return 0
     while read cap; do
        case x"$cap" in
-           (x|x\#)     ;;
+           (x|x\#*)    ;;
            (*)         OPTS_VATTRIBUTE=( "${OPTS_VATTRIBUTE[@]}" --ccap "$cap" );;
        esac
     done <"$f"
@@ -155,7 +155,7 @@ function _generateBCapabilityOptions
     test -e "$f" || return 0
     while read cap; do
        case x"$cap" in
-           (x|x\#)     ;;
+           (x|x\#*)    ;;
            (*)         OPTS_VATTRIBUTE=( "${OPTS_VATTRIBUTE[@]}" --bcap "$cap" );;
        esac
     done <"$f"
@@ -176,7 +176,7 @@ function _generateCapabilityOptions
 
     while read cap; do
        case x"$cap" in
-           (x|x\#)     ;;
+           (x|x\#*)    ;;
            (!CAP_SYSCHROOT)
                CAP_OPTS=( "${CAP_OPTS[@]}" --cap "$cap" )
                CAPCHROOT_OPTS=( "${CAPCHROOT_OPTS[@]}" --nochroot )
@@ -328,7 +328,7 @@ function _generateFlagOptions
     test ! -e "$vdir"/flags || \
     while read flag; do
        case x"$flag" in
-           (x|x\#)             ;;
+           (x|x\#*)            ;;
            (xnamespace)        ;;
            (xfakeinit)
                _IS_FAKEINIT=1