From 934abdb477a96cb162068c36d9c1deda209656e6 Mon Sep 17 00:00:00 2001 From: kueller Date: Sun, 21 Nov 2010 13:42:11 +0000 Subject: [PATCH] =?UTF-8?q?mountfs:=20Ein=20loeschen=20der=20utmp=20Datei?= =?UTF-8?q?=20beim=20Hochfahren=20hinzugef=C3=BCgt.=20Damit=20sollten=20di?= =?UTF-8?q?e=20Fragen=20nach=20noch=20offenen=20Sessions=20beim=20logout?= =?UTF-8?q?=20im=20KDE=20beendet=20sein=20udev:=20/dev/console=20und=20/de?= =?UTF-8?q?v/null=20wird=20auf=20vorhandensein=20gepr=C3=BCft=20vor=20dem?= =?UTF-8?q?=20anlegen..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5872 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init/mountfs.conf | 3 +++ etc/init/udev.conf | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/etc/init/mountfs.conf b/etc/init/mountfs.conf index 165f82d..6d80f52 100644 --- a/etc/init/mountfs.conf +++ b/etc/init/mountfs.conf @@ -41,4 +41,7 @@ script fi done /sbin/ldconfig + if [ -f /var/run/utmp ]; then + cp /dev/null /var/run/utmp + fi end script diff --git a/etc/init/udev.conf b/etc/init/udev.conf index 2afef18..aaaa779 100644 --- a/etc/init/udev.conf +++ b/etc/init/udev.conf @@ -27,9 +27,13 @@ pre-start script /bin/mkdir -p /dev/shm /bin/mkdir -p /dev/pts /bin/mount -n -t tmpfs -o mode=1755 none /dev/shm - /bin/mknod /dev/null c 1 3 + if [ ! -c /dev/null ]; then + /bin/mknod /dev/null c 1 3 + fi /bin/chmod 666 /dev/null - /bin/mknod /dev/console c 5 1 + if [ ! -c /dev/console ]; then + /bin/mknod /dev/console c 5 1 + fi status_message "udev prestart ready" end script