added hostapd and openssl

This commit is contained in:
wt
2025-03-05 17:52:04 +07:00
parent 4ff7423c21
commit 98836f9b99
12 changed files with 107 additions and 29 deletions
+13 -24
View File
@@ -15,6 +15,8 @@
. ./scripts/gitea.sh
. ./scripts/libnl.sh
. ./scripts/iw.sh
. ./scripts/openssl.sh
. ./scripts/hostapd.sh
#----------- Building rootfs ----------------------
rootfs() {
@@ -43,34 +45,21 @@ rootfs() {
cd $rootfspath/usr/bin
for i in $(cat $root/busybox/busybox_list); do ln -sv busybox $i; done
cp -v $root/rootfs/init.in $rootfspath/init
kernel_headers
uclibc
kernel
kernel_modules
if [ "$ZLIB_ENABLE" = "true" ]; then
zlib
fi
if [ "$DROPBEAR_ENABLE" = "true" ]; then
dropbear
fi
if [ "$sftp_server_enable" = "true" ]; then
sftp_server
fi
if [ "$curl_enable" = "true" ]; then
curl
fi
if [ "$bash_enable" = "true" ]; then
bash
fi
if [ "$git_enable" = "true" ]; then
git
fi
if [ "$gitea_enable" = "true" ]; then
gitea
fi
if [ "$libnl_enable" = "true" ]; then
libnl
fi
[ "$ZLIB_ENABLE" = "true" ] && zlib
[ "$DROPBEAR_ENABLE" = "true" ] && dropbear
[ "$sftp_server_enable" = "true" ] && sftp_server
[ "$curl_enable" = "true" ] && curl
[ "$bash_enable" = "true" ] && bash
[ "$git_enable" = "true" ] && git
[ "$gitea_enable" = "true" ] && gitea
[ "$libnl_enable" = "true" ] && libnl
[ "$iw_enable" = "true" ] && iw
[ "$openssl_enable" = "true" ] && openssl
[ "$hostapd_enable" = "true" ] && hostapd
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init