diff -Nru zte-mf627-switch-0.1/debian/changelog zte-mf627-switch-0.2/debian/changelog --- zte-mf627-switch-0.1/debian/changelog 2009-10-28 19:00:21.000000000 +0000 +++ zte-mf627-switch-0.2/debian/changelog 2009-10-28 18:40:45.000000000 +0000 @@ -1,3 +1,10 @@ +zte-mf627-switch (0.2-1) intrepid; urgency=low + + * Renamed 999-zte.rules as 10-zte.rules in /etc/udev/rules.d + * Added a check for intrepid to make sure usbserial gets loaded (see: see: http://ubuntuforums.org/showthread.php?t=1017630) + + -- Liam Green-Hughes Mon, 26 Oct 2009 22:36:48 +0000 + zte-mf627-switch (0.1-1) jaunty; urgency=low * Initial version diff -Nru /tmp/4s2us5q4C0/zte-mf627-switch-0.1/debian/install /tmp/GHaFqF2fuy/zte-mf627-switch-0.2/debian/install --- zte-mf627-switch-0.1/debian/install 2009-10-28 19:00:21.000000000 +0000 +++ zte-mf627-switch-0.2/debian/install 2009-10-26 22:53:51.000000000 +0000 @@ -1,4 +1,4 @@ etc/usb_modeswitch_zte_mf627.conf etc/ -etc/udev/rules.d/999-zte.rules etc/udev/rules.d +etc/udev/rules.d/10-zte.rules etc/udev/rules.d usr/sbin/zte_mf627_switch usr/sbin usr/share/hal/fdi/information/20thirdparty/20-zte-mf627.fdi usr/share/hal/fdi/information/20thirdparty diff -Nru /tmp/4s2us5q4C0/zte-mf627-switch-0.1/etc/udev/rules.d/10-zte.rules /tmp/GHaFqF2fuy/zte-mf627-switch-0.2/etc/udev/rules.d/10-zte.rules --- zte-mf627-switch-0.1/etc/udev/rules.d/10-zte.rules 1970-01-01 01:00:00.000000000 +0100 +++ zte-mf627-switch-0.2/etc/udev/rules.d/10-zte.rules 2009-04-24 23:18:12.000000000 +0100 @@ -0,0 +1 @@ +SUBSYSTEM=="usb" SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", RUN+="/usr/sbin/zte_mf627_switch" diff -Nru /tmp/4s2us5q4C0/zte-mf627-switch-0.1/etc/udev/rules.d/999-zte.rules /tmp/GHaFqF2fuy/zte-mf627-switch-0.2/etc/udev/rules.d/999-zte.rules --- zte-mf627-switch-0.1/etc/udev/rules.d/999-zte.rules 2009-04-24 23:18:12.000000000 +0100 +++ zte-mf627-switch-0.2/etc/udev/rules.d/999-zte.rules 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -SUBSYSTEM=="usb" SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", RUN+="/usr/sbin/zte_mf627_switch" diff -Nru /tmp/4s2us5q4C0/zte-mf627-switch-0.1/usr/sbin/zte_mf627_switch /tmp/GHaFqF2fuy/zte-mf627-switch-0.2/usr/sbin/zte_mf627_switch --- zte-mf627-switch-0.1/usr/sbin/zte_mf627_switch 2009-04-24 23:24:05.000000000 +0100 +++ zte-mf627-switch-0.2/usr/sbin/zte_mf627_switch 2009-10-27 22:22:13.000000000 +0000 @@ -1,2 +1,8 @@ -#!/bin/sh +#!/bin/bash +# If we are on Intrepid we need to load the usbserial module first see: http://ubuntuforums.org/showthread.php?t=1017630 +if [ `lsb_release --codename --short` == "intrepid" ]; then + insmod /lib/modules/`uname -r`/kernel/drivers/usb/serial/usbserial.ko vendor=0x19d2 product=0x0031 + sleep 2s +fi +# Switch the device to modem mode /usr/sbin/usb_modeswitch -c /etc/usb_modeswitch_zte_mf627.conf