From 29ea391692048d874071be4e7a71b53d4ba38d76 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 19 Sep 2013 02:00:46 +0200 Subject: [PATCH] network: enable getty on ttyGS0,1 through systemd to enable ACM console on android_usb --- postplug.d/20network | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postplug.d/20network b/postplug.d/20network index 22be5ea..85cd90c 100644 --- a/postplug.d/20network +++ b/postplug.d/20network @@ -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