Set MTU for RNDIS interface to 1428

The MTU setting of RNDIS inerface has been broken since ICS.
The patch writes the mtu value on the rndis0 interface after gagets
functions were enabled and before sys.usb.state property is updated.

Bug:5847206
Change-Id: Ib44e41b07d9859a13875ddd964ce5068cde7b0e2
diff --git a/init.stingray.rc b/init.stingray.rc
index 5ace900..ba964a6 100644
--- a/init.stingray.rc
+++ b/init.stingray.rc
@@ -321,14 +321,6 @@
     start gadget-qbp-modem
     start wrigley-diag
     start logcatd-blan
-    # MTU for USB tethering
-    # TODO: Need a dynamic way to configure appropriate MTU
-    write /sys/class/net/usb0/mtu 1428
-
-on property:ro.bootmode=unknown
-    # MTU for USB tethering
-    # TODO: Need a dynamic way to configure appropriate MTU
-    write /sys/class/net/usb0/mtu 1428
 
 service wlan_prod /system/bin/insmod /system/lib/modules/bcm4329.ko "firmware_path=/vendor/firmware/fw_bcm4329.bin nvram_path=/system/etc/wifi/bcm4329.cal"
     group wifi mot_tcmd system
diff --git a/init.stingray.usb.rc b/init.stingray.usb.rc
index 1f6851c..5ffd949 100644
--- a/init.stingray.usb.rc
+++ b/init.stingray.usb.rc
@@ -30,6 +30,7 @@
     write /sys/class/android_usb/android0/functions $sys.usb.config
     write /sys/class/android_usb/android0/bDeviceClass 224
     write /sys/class/android_usb/android0/enable 1
+    write /sys/class/net/rndis0/mtu 1428
     setprop sys.usb.state $sys.usb.config
 
 on property:sys.usb.config=rndis,adb
@@ -40,6 +41,7 @@
     write /sys/class/android_usb/android0/bDeviceClass 224
     write /sys/class/android_usb/android0/enable 1
     start adbd
+    write /sys/class/net/rndis0/mtu 1428
     setprop sys.usb.state $sys.usb.config
 
 on property:sys.usb.config=ptp
@@ -106,6 +108,7 @@
     write /sys/class/android_usb/android0/functions $sys.usb.config
     write /sys/class/android_usb/f_acm/instances 3
     write /sys/class/android_usb/android0/enable 1
+    write /sys/class/net/rndis0/mtu 1428
     setprop sys.usb.state $sys.usb.config
 
 on property:sys.usb.config=rndis,acm,usbnet,adb
@@ -116,5 +119,6 @@
     write /sys/class/android_usb/f_acm/instances 3
     write /sys/class/android_usb/android0/enable 1
     start adbd
+    write /sys/class/net/rndis0/mtu 1428
     setprop sys.usb.state $sys.usb.config