Skip to content

Commit 5e346f8

Browse files
committed
added busybox telnetd build script
1 parent 69b858f commit 5e346f8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tools/build-binaries.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6887
install_ndk 'https://github.com/openlgtv/buildroot-nc4/releases/download/webos-2974f83/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz' 'd7d7454390d366446c15797e1523e63a03e77cdb6391b8858a0e27d243ace34d' &
6988
download 'dropbear' 'https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_2022.83.tar.gz' 'e02c5c36eb53bfcd3f417c6e40703a50ec790a1a772269ea156a2ccef14998d2' &
7089
download 'rsync' 'https://github.com/WayneD/rsync/archive/refs/tags/v3.2.7.tar.gz' '4f2a350baa93dc666078b84bc300767a77789ca12f0dec3cb4b3024971f8ef47' &
7190
download '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' &
7292
wait
7393

7494
. "${NDK_PATH}/environment-setup"
7595

7696
build_dropbear
7797
build_rsync
7898
build_sftp
99+
build_telnetd

0 commit comments

Comments
 (0)