Files

75 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
. ./scripts/colors.sh
. ./scripts/config.sh
. ./scripts/funcs.sh
. ./scripts/download.sh
. ./scripts/busybox.sh
. ./scripts/kernel.sh
. ./scripts/rootfs.sh
. ./scripts/uboot.sh
. ./scripts/sdroot.sh
. ./scripts/dropbear.sh
. ./scripts/libnl.sh
. ./scripts/iw.sh
. ./scripts/hostapd.sh
. ./scripts/openssl.sh
. ./scripts/iptables.sh
. ./scripts/8821au_ko.sh
. ./scripts/finit_init.sh
case $1 in
build)
if [ ! -d downloads ]; then
download_sources
fi
rootfs
if [ "$IMAGE_USABLE_ENABLE" = "y" ]; then
sdroot_usable
fi
if [ "$IMAGE_ENABLE" = "y" ]; then
sdroot
fi
;;
dropbear)
dropbear
;;
download)
download_sources
;;
libnl)
libnl
;;
iw)
iw
;;
hostapd)
hostapd
;;
openssl)
openssl
;;
iptables)
iptables
;;
finit_init)
finit_init
;;
ko8821au)
ko8821au
;;
sdroot_usable)
if [ ! -d downloads ]; then
download_sources
fi
rootfs
sdroot_usable
;;
initramfs)
initramfs
;;
*)
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
exit 1
esac