[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.
From: |
Pino Toscano |
Subject: |
Re: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd. |
Date: |
Mon, 22 Jul 2013 16:16:56 +0200 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) |
Alle martedì 9 luglio 2013, Justus Winter ha scritto:
> 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
> if [ ! -f /etc/inittab ]
> then
> cp -p /usr/share/sysvinit/inittab /etc/inittab
> fi
I would put the code in the "else" of this "if".
> +if [ "$(uname)" = GNU ]; then
> + sed -i -e 's|/libexec/getty|/sbin/getty|' /etc/inittab
> +fi
> +
A better solution could be get the md5sum of /etc/inittab, and compare
it with the one of the current version (the one with old paths): if they
match, then the user did not change it at all, and it can be just
replaced; if does not match, either ask the user what to do, or simply
move the old file as .dpkg-old and put the new in place, of course
warning the user about that.
--
Pino Toscano
signature.asc
Description: This is a digitally signed message part.
- [PATCH 4/8] initscripts: add runsystem.sysv, (continued)
- Re: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.,
Pino Toscano <=
Re: patches for sysvinit, debian repository for testing, Samuel Thibault, 2013/07/15