tags 431475 + patch
thanks

Here is a patch to solve this issue.  It was written by Daniel Hess.

--- libpam-foreground-0.2.orig/debian/libpam-foreground.init
+++ libpam-foreground-0.2/debian/libpam-foreground.init
@@ -0,0 +1,36 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          libpam-foreground-clean
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+# Short-Description: Clean old status files during boot.
+### END INIT INFO
+
+set -e
+
+. /lib/lsb/init-functions
+PATH=/sbin:/bin
+
+STATEDIR=/var/run/console
+
+case "$1" in
+  start)
+    if [ -d $STATEDIR ]; then
+      log_begin_msg "Cleaning up $STATEDIR/..."
+      rm -f $STATEDIR/*
+      log_end_msg 0
+    fi
+    exit 0
+    ;;
+
+  stop|restart|force-reload)
+    exit 0
+    ;;
+
+  *)
+    echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+    exit 3
+    ;;
+esac
--- libpam-foreground-0.2.orig/debian/rules
+++ libpam-foreground-0.2/debian/rules
@@ -66,7 +66,7 @@
 #      dh_installemacsen
 #      dh_installpam
 #      dh_installmime
-#      dh_installinit
+       dh_installinit -u "start 46 S ."
 #      dh_installcron
 #      dh_installinfo
        dh_installman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to