Bug#355746: [Pkg-sysvinit-devel] Bug#355746: Warn on installation of bootclean if bootclean.sh was modified?

Henrique de Moraes Holschuh hmh at debian.org
Thu Mar 9 03:50:36 UTC 2006


On Wed, 08 Mar 2006, Thomas Hood wrote:
> Would it be a good idea to print a warning if /etc/init.d/bootclean is installed
> and the (obsolete) /etc/init.d/bootclean.sh script exists and was modified?  The
> warning would say something like:
> 
>    A modified /etc/init.d/bootclean.sh file is present.  This file
>    is obsolete and has been replaced by /etc/init.d/bootclean.
>    If you modified /etc/init.d/bootclean.sh to change the way it
>    cleans files then you should reimplement your changes in
>    /etc/init.d/bootclean.

There is another way:

In *preinst*, check if a modified /etc/init.d/bootclean.sh file is present.
If it is, move it to /etc/init.d/bootclean.

That will cause dpkg to output the usual conffile modified stuff.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh




More information about the Pkg-sysvinit-devel mailing list