[Craig Small]
> I believe the which is there because the location of the file varies
> between linux and freebsd.

Right.  I thought it was to detect if the procps package was installed
or not, and thus if the init.d script should be active or not.  If
that is the case, this patch would solve it.

diff -ur procps-3.2.8/debian/init procps-3.2.8-pere/debian/init
--- procps-3.2.8/debian/init    2009-09-30 22:41:18.000000000 +0200
+++ procps-3.2.8-pere/debian/init       2009-09-30 22:41:34.000000000 +0200
@@ -22,7 +22,7 @@
 . /lib/lsb/init-functions

 PATH=/sbin:$PATH
-which sysctl > /dev/null || exit 0
+if [ -x /sbin/sysctl ]; then exit 0; fi


 case "$1" in

> An alternative would be to figure out the locations of the file and
> then use some sort of test to work out which one is available.

If this is needed, someone who know more about kfreebsd will have to
come up with a patch.

> The NMU is fine.

I'll prepare a NMU once the choice of solution is decided, unless you
tell me you will take care of it.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to