network: enable getty on ttyGS0,1 through systemd to enable ACM console on android_usb
This commit is contained in:
parent
94b6db3676
commit
29ea391692
@ -106,6 +106,8 @@ function android_usb() {
|
|||||||
echo 0 > /sys/class/android_usb/android0/enable
|
echo 0 > /sys/class/android_usb/android0/enable
|
||||||
echo rndis,acm > /sys/class/android_usb/android0/functions
|
echo rndis,acm > /sys/class/android_usb/android0/functions
|
||||||
echo 2 > /sys/class/android_usb/android0/f_acm/instances
|
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 $ANDROID_ETHADDR > /sys/class/android_usb/android0/f_rndis/ethaddr
|
||||||
echo 2d01 > /sys/class/android_usb/android0/idProduct
|
echo 2d01 > /sys/class/android_usb/android0/idProduct
|
||||||
echo 1 > /sys/class/android_usb/android0/enable
|
echo 1 > /sys/class/android_usb/android0/enable
|
||||||
|
Loading…
Reference in New Issue
Block a user