[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Problems with scripts
From:       Asier Tamayo <asier.tamayo () ona-electroerosion ! com>
Date:       2004-01-29 12:08:09
Message-ID: 205FD9FCCE7AD411BDEA00105A4CB4F220A6DC () SRV_IMASD
[Download RAW message or body]

Hello all,

I'm new to the mailing list, therefore don't blame on me if I'm asking a
silly question.

My problem is with a script file (/sbin/hotplug). I've changed the file in
order to show the bug:
	#! /bin/sh
	#
	#
	echo 1:: $ACTION :: >>/tmp/usb_hotplug.log
	echo 2:: $ACTION :: >>/tmp/usb_hotplug.log
	echo 2:: $ACTION :: >>/tmp/usb_hotplug.log
	echo 2:: $ACTION :: >>/tmp/usb_hotplug.log
	if [ "$ACTION" = "register" ]
	then
		echo register:: $ACTION :: >>/tmp/usb_hotplug.log
		# No hacemos nada
		exit
	fi
	echo 2:: $ACTION :: >>/tmp/usb_hotplug.log
	exit

/sbin/hotplug is called whenever I connect and disconnect an USB device, and
the following lines appear:
	1:: add ::
	2:: add ::
	2:: add ::
	2:: add ::
	2:: add ::
	1:: remove ::
	2:: remove ::
	2:: remove ::
	2:: remove ::
	2:: remove ::

My problem is that from time to time (1 out of 7) I can see a line as the
following one:
	register:: add :: or register:: remove ::

It should be impossible!! If I call the /sbin/hotplug from a shell in a
telnet, it never happens!!

Does anyone know where the problem is? I'm using BusyBox version 0.60.2.
Does anyone know if this possible bug has already been corrected in the
latest versions?

Thanks in advance,

Asier.
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic