summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-08-14 16:30:03 +0200
committerDirk von Suchodoletz2009-08-14 16:30:03 +0200
commit6609e15b974bf8593595a3485da6a18fa28579af (patch)
treeb3f826899acfd88ff0e1cd75a460ccdba084c955 /initramfs/distro-specs/ubuntu/functions-default
parentInitfile now created by DistroUtils (diff)
downloadcore-6609e15b974bf8593595a3485da6a18fa28579af.tar.gz
core-6609e15b974bf8593595a3485da6a18fa28579af.tar.xz
core-6609e15b974bf8593595a3485da6a18fa28579af.zip
Some trivial stuff ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3091 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default6
1 files changed, 3 insertions, 3 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index efb0abf1..4215920d 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -64,9 +64,9 @@ config_distro () {
echo "# inittab is obsolete with the change to upstart from ubuntu 7.10" \
> /mnt/etc/inittab
- # fix getty bug
- # (console login on tty1 is started too early)
- sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1
+ # fix getty bug (console login on tty1 is started too early)
+ [ -f /mnt/etc/event.d/tty1 ] && \
+ sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1
# for screen sessions
testmkd /mnt/var/run/screen root:utmp 0775