Changeset 2548

Show
Ignore:
Timestamp:
06/16/07 22:42:03 (1 year ago)
Author:
dhozac
Message:

Define PREVLEVEL and RUNLEVEL so SuSE's rc script works correctly.

Files:

Legend:

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

    r2543 r2548  
    279279            done 
    280280            INITCMD_PREPARE=( $_FAKE_RUNLEVEL "$RUNLEVEL_START" /var/run/utmp ) 
     281            OPTS_ENV=( "${OPTS_ENV[@]}" PREVLEVEL=N RUNLEVEL="$RUNLEVEL_START" ) 
    281282            ;; 
    282283             
     
    691692    case "$INITSTYLE" in 
    692693        (sysv) 
    693             export PREVLEVEL=$RUNLEVEL_START # required by Debian's initscripts 
     694            export PREVLEVEL=$RUNLEVEL_START RUNLEVEL=$RUNLEVEL_STOP # required by Debian's initscripts 
    694695            ;; 
    695696    esac