Am 22.06.2011 09:56, schrieb Josua Dietze:
If you want you can check for the other variables too; just before the "case"
line, the values for v_id and p_id should be set.
echo "ums variables: v_id $v_id, p_id $p_id" >&2
I have to correct myself here; the variables mentioned are *not* relevant for
the mode switching; they are used afterwards only, for the post-handling of the
switched device.
We need to look only at the bottom part of the script (upstream version):
--x--x--
(
count=120
while [ $count != 0 ]; do
if [ ! -e "/usr/bin/tclsh" ]; then
sleep 1
count=$(($count - 1))
else
exec /usr/bin/tclsh /usr/sbin/usb_modeswitch_dispatcher "$@" 2>/dev/null
&
exit 0
fi
done
) &
--x--x--
Here you could watch the value of "$count", plus you could remove the error
redirection of the dispatcher call to get a possible error report. Updated script:
--x--x--
(
count=120
while [ $count != 0 ]; do
echo "ums: wait counter is $count" >&2
if [ ! -e "/usr/bin/tclsh" ]; then
sleep 1
count=$(($count - 1))
else
exec /usr/bin/tclsh /usr/sbin/usb_modeswitch_dispatcher "$@" &
exit 0
fi
done
) &
--x--x--
Josh
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org