[prev in list] [next in list] [prev in thread] [next in thread]
List: hurd-bug
Subject: Re: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.
From: Pino Toscano <toscano.pino () tiscali ! it>
Date: 2013-07-22 14:16:56
Message-ID: 201307221616.56953.toscano.pino () tiscali ! it
[Download RAW message or body]
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" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic