91 lines
1.6 KiB
Bash
Executable File
91 lines
1.6 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
|
|
. ./scripts/libsqlite3.sh
|
|
. ./scripts/lm_sensors.sh
|
|
. ./scripts/wpa_supplicant.sh
|
|
. ./scripts/lrzsz.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
|
|
;;
|
|
libsqlite3)
|
|
libsqlite3
|
|
;;
|
|
lm_sensors)
|
|
lm_sensors
|
|
;;
|
|
wpa_supplicant)
|
|
build_wpa_supplicant
|
|
;;
|
|
lrzsz)
|
|
lrzsz-build
|
|
;;
|
|
*)
|
|
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
|
exit 1
|
|
esac
|