Changeset 2661

Show
Ignore:
Timestamp:
01/13/08 19:26:41 (10 months ago)
Author:
dhozac
Message:

Use $cmd instead of $2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/vserver

    r2639 r2661  
    200200 
    201201# Create a new namespace when starting the guest 
    202 test "$2" != start -o -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \ 
     202test "$cmd" != start -o -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \ 
    203203    exec $_VNAMESPACE --new -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}" 
    204204 
    205205# Enter the namespace early so we can test for files inside the guest 
    206 test "$2" != enter -a "$2" != stop || \ 
     206test "$cmd" != enter -a "$cmd" != stop || \ 
    207207    test -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \ 
    208208    ! isVserverRunning "$VSERVER_DIR" || \