Skip to content

Instantly share code, notes, and snippets.

@tuxdna
Forked from tuxdna/photon.sh
Created October 10, 2011 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxdna/1276521 to your computer and use it in GitHub Desktop.
Save tuxdna/1276521 to your computer and use it in GitHub Desktop.
Tata Photon Prepaid dongle on Fedora 14
D="201e:2009"
echo "Searching for device: $D"
lsusb | grep "$D"
retval=$?
if [ $retval != 0 ]
then
echo "Device not found in 'lsusb' listing"
exit $retval
else
echo "Device found in 'lsusb'"
fi
echo "Switching USB Mode for device: "
usb_modeswitch -c /etc/usb_modeswitch.d/"$D"
echo "Connecting now: "
wvdial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment