network: enable getty on ttyGS0,1 through systemd to enable ACM console on android_usb

This commit is contained in:
Silvan Calarco 2013-09-19 02:00:46 +02:00
parent 94b6db3676
commit 29ea391692

View File

@ -106,6 +106,8 @@ function android_usb() {
echo 0 > /sys/class/android_usb/android0/enable
echo rndis,acm > /sys/class/android_usb/android0/functions
echo 2 > /sys/class/android_usb/android0/f_acm/instances
systemctl enable getty@ttyGS0
systemctl enable getty@ttyGS1
echo $ANDROID_ETHADDR > /sys/class/android_usb/android0/f_rndis/ethaddr
echo 2d01 > /sys/class/android_usb/android0/idProduct
echo 1 > /sys/class/android_usb/android0/enable