Add exec-remount.
[util-vserver.git] / scripts / vserver-setup.functions
index 61740e8..0122b18 100644 (file)
@@ -34,8 +34,8 @@ declare -a SETUP_FLAGS=()
 
 declare -r SETUP_OPTIONS="confdir:,lockfile:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:,context:,initstyle:,cpuset:,cpusetcpus:,cpusetmems:,cpusetvirt"
 declare -r SETUP_HELPMSG=$"
-    --context   ...  the static context of the vserver [default: none; a dynamic
-                     context will be assumed]
+    --context   ...  the static context of the vserver [default: none; one will
+                     be generated for you]
     --confdir   ...  [default: $__CONFDIR/<name>]
     --lockfile <filename>
                ...  [default: $__RUNDIR/<name>]
@@ -135,12 +135,12 @@ function _setup_writeInterface
     local dev=${tmp%%:*}
     local nodev=
     test "$dev" != "$tmp"  || dev=
+
+    tmp=${tmp##${dev}:}
     test "$dev" != "nodev" || {
        dev=
        nodev=1
     }
-
-    tmp=${tmp##${dev}:}
     local mask=${tmp##*/}
     test "$mask" != "$tmp"  || mask=