mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
ucentral: development update
* spawn a console on usbserial dongle Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
35
feeds/ucentral/usb-console/Makefile
Normal file
35
feeds/ucentral/usb-console/Makefile
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=usb-console
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/usb-console
|
||||||
|
SECTION:=ucentral
|
||||||
|
CATEGORY:=uCentral
|
||||||
|
TITLE:=usb-console
|
||||||
|
DEPENDS:= +kmod-usb-serial +kmod-usb-serial-cp210x +kmod-usb-serial-ftdi
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/usb-console/description
|
||||||
|
Allow spawning a console on a usbserial dongle.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
mkdir -p $(PKG_BUILD_DIR)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile/Default
|
||||||
|
|
||||||
|
endef
|
||||||
|
Build/Compile = $(Build/Compile/Default)
|
||||||
|
|
||||||
|
define Package/usb-console/install
|
||||||
|
$(CP) ./files/* $(1)
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,usb-console))
|
||||||
1
feeds/ucentral/usb-console/files/etc/hotplug.d/tty/getty
Normal file
1
feeds/ucentral/usb-console/files/etc/hotplug.d/tty/getty
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(exec getty 0 /dev/ttyUSB0 )&
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
From 8d9502c42360f3e0131448baaa1ab794be2ef1cf Mon Sep 17 00:00:00 2001
|
|
||||||
From: John Crispin <john@phrozen.org>
|
|
||||||
Date: Tue, 13 Jul 2021 08:54:42 +0200
|
|
||||||
Subject: [PATCH 44/44] busybox: enable GETTY by default
|
|
||||||
|
|
||||||
Signed-off-by: John Crispin <john@phrozen.org>
|
|
||||||
---
|
|
||||||
package/utils/busybox/Config-defaults.in | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/package/utils/busybox/Config-defaults.in b/package/utils/busybox/Config-defaults.in
|
|
||||||
index 2389bbb8e0..a083af1863 100644
|
|
||||||
--- a/package/utils/busybox/Config-defaults.in
|
|
||||||
+++ b/package/utils/busybox/Config-defaults.in
|
|
||||||
@@ -1342,7 +1342,7 @@ config BUSYBOX_DEFAULT_FEATURE_DEL_USER_FROM_GROUP
|
|
||||||
default n
|
|
||||||
config BUSYBOX_DEFAULT_GETTY
|
|
||||||
bool
|
|
||||||
- default n
|
|
||||||
+ default y
|
|
||||||
config BUSYBOX_DEFAULT_LOGIN
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ packages:
|
|||||||
- usteer
|
- usteer
|
||||||
- udevmand
|
- udevmand
|
||||||
- wpad-mesh-openssl
|
- wpad-mesh-openssl
|
||||||
|
- usb-console
|
||||||
diffconfig: |
|
diffconfig: |
|
||||||
CONFIG_OPENSSL_ENGINE=y
|
CONFIG_OPENSSL_ENGINE=y
|
||||||
CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
|
CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
|
||||||
@@ -48,3 +49,5 @@ diffconfig: |
|
|||||||
CONFIG_TARGET_PREINIT_SUPPRESS_STDERR=y
|
CONFIG_TARGET_PREINIT_SUPPRESS_STDERR=y
|
||||||
CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE=y
|
CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE=y
|
||||||
# CONFIG_BATMAN_ADV_BATMAN_V is not set
|
# CONFIG_BATMAN_ADV_BATMAN_V is not set
|
||||||
|
CONFIG_BUSYBOX_CUSTOM=y
|
||||||
|
CONFIG_BUSYBOX_CONFIG_GETTY=y
|
||||||
|
|||||||
Reference in New Issue
Block a user