Bug#230857: Careful with that shell scripting...
>This means that the plan to deal with the old devpts.sh
>should be modified to take this into account. I suggest:
>
>* Depends: sysvinit (>= 2.85-10)
>* No longer ship either devpts.sh or mountkernfs.
> That means that both of these conffiles are abandoned.
> Because dpkg does not dispose of abandoned conffiles (it simply
> leaves them hanging around), libc6 has to dispose of them:
Good so far....
>* chmod ugo-x /etc/init.d/devpts.sh /etc/init.d/mountkernfs
>* mv /etc/init.d/devpts.sh /etc/init.d/devpts.sh.dpkg-old
>* mv /etc/init.d/mountkernfs /etc/init.d/mountkernfs.dpkg-old
>* rm -f /etc/rcS.d/S35devpts.sh /etc/rcS.d/S35mountkernfs
These four lines will spew errors if the scripts have already been deleted
by the local admin. So, the following is better:
# Move obsolete init scripts out of the way if they're present
if [ -f /etc/init.d/devpts.sh ]
chmod ugo-x /etc/init.d/devpts.sh
mv /etc/init.d/devpts.sh /etc/init.d/devpts.sh.dpkg-old
fi
if [ -f /etc/init.d/mountkernfs ]
chmod ugo-x /etc/init.d/mountkernfs
mv /etc/init.d/mountkernfs /etc/init.d/mountkernfs.dpkg-old
fi
rm -f /etc/rcS.d/S35devpts.sh /etc/rcS.d/S35mountkernfs
rm -f /etc/rcS.d/K35devpts.sh /etc/rcS.d/K35mountkernfs
Reply to: