bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.


From: Justus Winter
Subject: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.
Date: Tue, 9 Jul 2013 10:46:51 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]