File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,37 @@ build_sftp() {
6363 cp -v -t " ${TARGET_DIR} " -- sftp-server
6464}
6565
66+ build_telnetd () {
67+ cd " ${BUILD_ROOT} /busybox-src"
68+ make allnoconfig
69+ while read -r line; do
70+ sed -i -e " s/.*${line% =* } .*/${line} /g" .config
71+ done << EOF
72+ CONFIG_SHOW_USAGE=y
73+ CONFIG_FEATURE_VERBOSE_USAGE=y
74+ CONFIG_FEATURE_COMPRESS_USAGE=y
75+ CONFIG_FEATURE_DEVPTS=y
76+ CONFIG_LFS=y
77+ CONFIG_TELNETD=y
78+ CONFIG_FEATURE_TELNETD_STANDALONE=y
79+ CONFIG_FEATURE_TELNETD_PORT_DEFAULT=23
80+ EOF
81+ make ${MAKEOPTS} busybox
82+ cp -v busybox " ${TARGET_DIR} /telnetd"
83+ }
84+
6685[ -d " ${TARGET_DIR} " ] || mkdir -p -- " ${TARGET_DIR} "
6786
6887install_ndk ' https://github.com/openlgtv/buildroot-nc4/releases/download/webos-2974f83/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz' ' d7d7454390d366446c15797e1523e63a03e77cdb6391b8858a0e27d243ace34d' &
6988download ' dropbear' ' https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_2022.83.tar.gz' ' e02c5c36eb53bfcd3f417c6e40703a50ec790a1a772269ea156a2ccef14998d2' &
7089download ' rsync' ' https://github.com/WayneD/rsync/archive/refs/tags/v3.2.7.tar.gz' ' 4f2a350baa93dc666078b84bc300767a77789ca12f0dec3cb4b3024971f8ef47' &
7190download ' openssh' ' https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.1p1.tar.gz' ' 19f85009c7e3e23787f0236fbb1578392ab4d4bf9f8ec5fe6bc1cd7e8bfdd288' &
91+ download ' busybox' ' https://busybox.net/downloads/busybox-1.36.1.tar.bz2' ' b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314' &
7292wait
7393
7494. " ${NDK_PATH} /environment-setup"
7595
7696build_dropbear
7797build_rsync
7898build_sftp
99+ build_telnetd
You can’t perform that action at this time.
0 commit comments