]> git.pld-linux.org Git - packages/util-vserver.git/blobdiff - util-vserver-utmpx.patch
- vprocunhide compatible with kernels 2.6.25+
[packages/util-vserver.git] / util-vserver-utmpx.patch
index 3c4525151891bbe16c428f702e0620e983a2f58f..48b2600a63683661042da82873afd98956daf0e6 100644 (file)
@@ -1,11 +1,29 @@
---- util-vserver-0.30.208/scripts/vserver.functions~   2005-10-11 19:51:05.061289264 +0200
-+++ util-vserver-0.30.208/scripts/vserver.functions    2005-10-20 23:13:31.825830032 +0200
-@@ -266,7 +266,7 @@
+--- util-vserver-0.30.214/scripts/vserver.functions~   2007-09-02 23:06:48.000000000 +0200
++++ util-vserver-0.30.214/scripts/vserver.functions    2007-09-02 23:14:40.713357250 +0200
+@@ -284,7 +284,7 @@
                INITCMD_START=( "$i" "$RUNLEVEL_START" )
                INITCMD_STOP=(  "$i" "$RUNLEVEL_STOP"  )
            done
 -          INITCMD_PREPARE=( $_FAKE_RUNLEVEL "$RUNLEVEL_START" /var/run/utmp )
 +          INITCMD_PREPARE=( $_FAKE_RUNLEVEL "$RUNLEVEL_START" /var/run/utmpx )
+           OPTS_ENV=( "${OPTS_ENV[@]}" PREVLEVEL=N RUNLEVEL="$RUNLEVEL_START" )
+           if test -n "$OPTION_DEBUG_SYSV"; then
+               INITCMD_START=( /bin/bash -x "${INITCMD_START[@]}" )
+@@ -309,7 +309,7 @@
+           _NEED_VSHELPER_SYNC=1
+           test -z "$RUNLEVEL_START"         || INITCMD_START=( "${INITCMD_START[@]}" "$RUNLEVEL_START" )
+           test -z "$RUNLEVEL_STOP"          || INITCMD_STOP=(  "${INITCMD_STOP[@]}"  "$RUNLEVEL_STOP"  )
+-          ! isNumber "${RUNLEVEL_START:-3}" || INITCMD_PREPARE=( $_FAKE_RUNLEVEL "${RUNLEVEL_START:-3}" /var/run/utmp )
++          ! isNumber "${RUNLEVEL_START:-3}" || INITCMD_PREPARE=( $_FAKE_RUNLEVEL "${RUNLEVEL_START:-3}" /var/run/utmpx )
            ;;
-           
-       (xplain)
+       (xgentoo)
+@@ -317,7 +317,7 @@
+           INITCMD_START=( env TERM=$TERM $RC_WRAP "$RUNLEVEL_START" )
+           INITCMD_STOP=( env -i PATH=$RC_PATH TERM=$TERM RUNLEVEL=0 /sbin/rc shutdown )
+-          INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp )
++          INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmpx )
+           ;;
+       (x) ;;
This page took 0.026286 seconds and 4 git commands to generate.