From ae8a2cc222a5bafeb0ad1b620e264f2f9f7bbfbe Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 4 Sep 2021 20:26:35 +0900 Subject: [PATCH] enable serial change g_mass_storage to g_acm_ms --- apkovl/etc/init.d/megabit-sync | 4 ++-- apkovl/etc/inittab | 4 ++++ apkovl/etc/securetty | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 apkovl/etc/inittab create mode 100644 apkovl/etc/securetty diff --git a/apkovl/etc/init.d/megabit-sync b/apkovl/etc/init.d/megabit-sync index 6153b82..38a6785 100755 --- a/apkovl/etc/init.d/megabit-sync +++ b/apkovl/etc/init.d/megabit-sync @@ -6,6 +6,6 @@ pidfile="/var/run/megabit-sync.pid" start_pre() { mkdir -p /mnt/tmp mount /usr/share/megabit/tmp.img /mnt/tmp - modprobe -r g_mass_storage - modprobe g_mass_storage file=/usr/share/megabit/tmp.img + modprobe -r g_acm_ms + modprobe g_acm_ms file=/usr/share/megabit/tmp.img } diff --git a/apkovl/etc/inittab b/apkovl/etc/inittab new file mode 100644 index 0000000..8e5aff0 --- /dev/null +++ b/apkovl/etc/inittab @@ -0,0 +1,4 @@ +::sysinit:/sbin/openrc sysinit +::sysinit:/sbin/openrc boot +::wait:/sbin/openrc default +ttyGS0::respawn:/sbin/getty -L ttyGS0 115200 vt100 diff --git a/apkovl/etc/securetty b/apkovl/etc/securetty new file mode 100644 index 0000000..eee2680 --- /dev/null +++ b/apkovl/etc/securetty @@ -0,0 +1 @@ +ttyGS0