diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..1fc886a --- /dev/null +++ b/install.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)" +source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)" + +DATA_DIR="/mnt/data" +case "$(ubnt-device-info firmware || true)" in + 1*) + DATA_DIR="/mnt/data" + ;; + 2*) + DATA_DIR="/data" + ;; + 3*) + DATA_DIR="/data" + ;; + *) + echo "ERROR: No persistent storage found." 1>&2 + exit 1 + ;; + esac + + +echo -e "${idsCL[Green]}Installing UniFiOS-Utilities 'on-boot-script' system...${idsCL[Default]}" +echo +# curl -fsL "https://raw.githubusercontent.com/unifi-utilities/unifios-utilities/HEAD/on-boot-script/remote_install.sh" | /bin/sh +echo +echo -e "${idsCL[Green]}Downloading hostname template file to: ${DATA_DIR}/on_boot.d/dns_custom_hostnames.sh${idsCL[Default]}" +echo +echo -e "${idsCL[LightCyan]}Edit the file above to add your custom DNS entires${idsCL[Default]}" + + + +exit 0 \ No newline at end of file