X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mtetherd-usbnet-disable.sh;fp=mtetherd-usbnet-disable.sh;h=62a368c02d6383912e89ae827ab348a29718613f;hb=d57bed51fe9d9832ab8b7ef33e594a84f2f0e8b9;hp=317e350d35fa9096c823eb1ee0da47303e68ad53;hpb=f4eb0d19c92fb621a6d096062597800cfe98dcf2;p=mtetherd diff --git a/mtetherd-usbnet-disable.sh b/mtetherd-usbnet-disable.sh index 317e350..62a368c 100755 --- a/mtetherd-usbnet-disable.sh +++ b/mtetherd-usbnet-disable.sh @@ -28,5 +28,13 @@ if [ $? != 0 ]; then fi /sbin/rmmod g_ether +if [ $? != 0 ]; then + logger "$0: failed to unload g_ether" + exit 1 +fi + +# load this here or the system will not receive any USB events +/sbin/modprobe g_file_storage exit 0 +