tags 518074 + patch
thanks

[Thue Janus Kristensen]
> After 
>   # aptitude remove hpoj
> I still have the following on my system:
> 
> t...@h ~> ls -l /etc/init.d/hpoj
> -rwxr-xr-x 1 root root 45517 2008-10-08 14:24 /etc/init.d/hpoj
> t...@h ~> ls -l /etc/rc4.d/S19hpoj
> lrwxrwxrwx 1 root root 14 2009-03-03 23:34 /etc/rc4.d/S19hpoj -> 
> ../init.d/hpoj

This is the correct behaviour.

> So at each boot hpoj still tries to start. dpkg --purge hpoj fixes
> it, but should not be neccesary.

The symlinks should be left behind until the package is purged (the
enabled/disabled status is configuration), but the script should not
do anything if the package have been removed.

Here is a patch to fix it.

diff -ur ../hpoj-0.91/scripts/ptal-init.in 
../hpoj-0.91-pere/scripts/ptal-init.in
--- ../hpoj-0.91/scripts/ptal-init.in   2009-09-14 11:12:36.000000000 +0200
+++ ../hpoj-0.91-pere/scripts/ptal-init.in      2009-09-14 11:15:53.000000000 
+0200
@@ -38,6 +38,10 @@

 use strict;

+# Do nothing if the package is removed but not purged
+if ( ! -x "/usr/sbin/ptal-mlcd" ) {
+    exit 0;
+}

 ###########################################################################
 # In case of difficulty you might need to modify the following definitions.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to