added hostapd and openssl
This commit is contained in:
+13
-24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user