Skip to content

Commit 4c2ec4c

Browse files
committed
added busybox telnetd build script
1 parent 69b858f commit 4c2ec4c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tools/build-binaries.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,36 @@ 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_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+
6684
[ -d "${TARGET_DIR}" ] || mkdir -p -- "${TARGET_DIR}"
6785

6886
install_ndk 'https://github.com/openlgtv/buildroot-nc4/releases/download/webos-2974f83/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz' 'd7d7454390d366446c15797e1523e63a03e77cdb6391b8858a0e27d243ace34d' &
6987
download 'dropbear' 'https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_2022.83.tar.gz' 'e02c5c36eb53bfcd3f417c6e40703a50ec790a1a772269ea156a2ccef14998d2' &
7088
download 'rsync' 'https://github.com/WayneD/rsync/archive/refs/tags/v3.2.7.tar.gz' '4f2a350baa93dc666078b84bc300767a77789ca12f0dec3cb4b3024971f8ef47' &
7189
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' &
7291
wait
7392

7493
. "${NDK_PATH}/environment-setup"
7594

7695
build_dropbear
7796
build_rsync
7897
build_sftp
98+
build_telnetd

0 commit comments

Comments
 (0)