Package: irda-utils Version: 0.9.16-10 Hello,
On an old Fujitsu Lifebook running sarge irattach alone does not stop discovery mode, so sysctl should be used too. Now the TV does not change to random channels any more :) It's too late for sarge but perhapt etch would find this patch of use. Tested on my sarge laptop. -Mikko
diff -u irda-utils-0.9.16/debian/changelog irda-utils-0.9.16.mkr1/debian/changelog --- irda-utils-0.9.16/debian/changelog 2005-12-19 01:01:33.567344336 +0200 +++ irda-utils-0.9.16.mkr1/debian/changelog 2005-12-19 01:01:10.468855840 +0200 @@ -1,3 +1,10 @@ +irda-utils (0.9.16.mkr1) unstable; urgency=low + + * Also use sysctl to stop discovery since irattach alone + is not enough. + + -- Mikko Rapeli <[EMAIL PROTECTED]> Mon, 19 Dec 2005 01:01:00 +0200 + irda-utils (0.9.16-10) unstable; urgency=low * debian/preinst: Fixed script to avoid failing when diff -u irda-utils-0.9.16/debian/irda-utils.init irda-utils-0.9.16.mkr1/debian/irda-utils.init --- irda-utils-0.9.16/debian/irda-utils.init 2005-12-19 01:01:33.559345552 +0200 +++ irda-utils-0.9.16.mkr1/debian/irda-utils.init 2005-12-19 00:56:56.326491352 +0200 @@ -13,8 +13,10 @@ PIDFILE="/var/run/$NAME.pid" PACKAGE="irda-utils" DESC="IrDA service" +SYSCTL="/sbin/sysctl" test -x $DAEMON || exit 0 +test -x $SYSCTL || exit 0 # Handle configuration if [ -f /etc/default/$PACKAGE ]; then @@ -33,8 +35,10 @@ fi if [ "$DISCOVERY" = "true" ]; then DISCOVERY="-s" + $SYSCTL -q -w net.irda.discovery=1 else DISCOVERY="" + $SYSCTL -q -w net.irda.discovery=0 fi @@ -45,6 +49,7 @@ # Needed for some machines in FIR-mode if [ -n "$SETSERIAL" ]; then + test -x /bin/setserial || exit 0 /bin/setserial $SETSERIAL uart none port 0x0 irq 0 fi Common subdirectories: irda-utils-0.9.16/debian/po and irda-utils-0.9.16.mkr1/debian/po diff -u irda-utils-0.9.16/debian/postinst irda-utils-0.9.16.mkr1/debian/postinst --- irda-utils-0.9.16/debian/postinst 2005-12-19 01:01:33.568344184 +0200 +++ irda-utils-0.9.16.mkr1/debian/postinst 2005-12-19 01:08:20.308510280 +0200 @@ -106,6 +106,8 @@ ENABLE= # Set discovery mode which usually is a good idea for finding other devices. +# If set 'true' or 'false' irattach and sysctl are used to enable and disable +# discovery mode. By default discover mode is disabled. DISCOVERY= # Set IRDA device to access (e.g. /dev/ttyS1 or irda0).