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.