File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,36 @@ build_sftp() {
63
63
cp -v -t " ${TARGET_DIR} " -- sftp-server
64
64
}
65
65
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_LFS=y
76
+ CONFIG_TELNETD=y
77
+ CONFIG_FEATURE_TELNETD_STANDALONE=y
78
+ CONFIG_FEATURE_TELNETD_PORT_DEFAULT=23
79
+ EOF
80
+ make ${MAKEOPTS} busybox
81
+ cp -v busybox " ${TARGET_DIR} /telnetd"
82
+ }
83
+
66
84
[ -d " ${TARGET_DIR} " ] || mkdir -p -- " ${TARGET_DIR} "
67
85
68
86
install_ndk ' https://github.com/openlgtv/buildroot-nc4/releases/download/webos-2974f83/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz' ' d7d7454390d366446c15797e1523e63a03e77cdb6391b8858a0e27d243ace34d' &
69
87
download ' dropbear' ' https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_2022.83.tar.gz' ' e02c5c36eb53bfcd3f417c6e40703a50ec790a1a772269ea156a2ccef14998d2' &
70
88
download ' rsync' ' https://github.com/WayneD/rsync/archive/refs/tags/v3.2.7.tar.gz' ' 4f2a350baa93dc666078b84bc300767a77789ca12f0dec3cb4b3024971f8ef47' &
71
89
download ' openssh' ' https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.1p1.tar.gz' ' 19f85009c7e3e23787f0236fbb1578392ab4d4bf9f8ec5fe6bc1cd7e8bfdd288' &
90
+ download ' busybox' ' https://busybox.net/downloads/busybox-1.36.1.tar.bz2' ' b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314' &
72
91
wait
73
92
74
93
. " ${NDK_PATH} /environment-setup"
75
94
76
95
build_dropbear
77
96
build_rsync
78
97
build_sftp
98
+ build_telnetd
You can’t perform that action at this time.
0 commit comments