#!/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 case $1 in build) if [ ! -d downloads ]; then download_sources fi rootfs if [ "$IMAGE_USABLE_ENABLE" = "true" ]; then sdroot_usable fi sdroot # kernel_with_rootfs # uboot # busybox_rootfs # kernel ;; dropbear) dropbear ;; download) download_sources ;; libnl) libnl ;; iw) iw ;; hostapd) hostapd ;; openssl) openssl ;; iptables) iptables ;; ko8821au) ko8821au ;; sdroot_usable) if [ ! -d downloads ]; then download_sources fi rootfs sdroot_usable ;; *) printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET" exit 1 esac