[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.
From:       Justus Winter <4winter () informatik ! uni-hamburg ! de>
Date:       2013-07-09 8:46:51
Message-ID: 1373359611-16879-9-git-send-email-4winter () informatik ! uni-hamburg ! de
[Download RAW message or body]

This is essentially the same as
89f6476d8979174f395a1bf784486254464c349d but fixes the existing
/etc/inittab file in the postinstall script.
---
 debian/changelog         |    1 +
 debian/sysvinit.postinst |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 108c41a..dfc4603 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -67,6 +67,7 @@ sysvinit (2.88dsf-42) UNRELEASED; urgency=low
     http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html
     is addressed.
   * killprocs: Likewise.
+  * sysvinit.postinst: Fix getty path in /etc/inittab on Hurd.
 
  -- Roger Leigh <rleigh@debian.org>  Sat, 04 May 2013 13:13:51 +0100
 
diff --git a/debian/sysvinit.postinst b/debian/sysvinit.postinst
index 1750412..061f53b 100755
--- a/debian/sysvinit.postinst
+++ b/debian/sysvinit.postinst
@@ -85,6 +85,10 @@ then
 	cp -p /usr/share/sysvinit/inittab /etc/inittab
 fi
 
+if [ "$(uname)" = GNU ]; then
+    sed -i -e 's|/libexec/getty|/sbin/getty|' /etc/inittab
+fi
+
 restart=yes
 
 chroot=0
-- 
1.7.10.4


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic