From 3951ceb718fbd11423afa316d225c5009be03a35 Mon Sep 17 00:00:00 2001 From: Dmitry Nedospasov Date: Sun, 18 Jul 2010 19:53:28 +0200 Subject: [PATCH] Fix karmic/lucid gettys This was broken by a previous patch, the if statement looked for a foler that doesn't exist on karmic, but did on prior release, since ttys are no longer in /etc/event.d, but instead in /etc/init /etc/event.d -> /etc/init --- hooks/karmic/30-disable-gettys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/karmic/30-disable-gettys b/hooks/karmic/30-disable-gettys index 104d17b..28f8345 100755 --- a/hooks/karmic/30-disable-gettys +++ b/hooks/karmic/30-disable-gettys @@ -28,7 +28,7 @@ logMessage Script $0 starting # Remove the links for upstart # rm -f ${prefix}/etc/init/tty[!1].conf -[ -f ${prefix}/etc/event.d/tty1 ] && { +[ -f ${prefix}/etc/init/tty1.conf ] && { sed -i -e s/tty1/hvc0/ ${prefix}/etc/init/tty1.conf mv ${prefix}/etc/init/tty1.conf ${prefix}/etc/init/hvc0.conf }