2021-03-02 15:45:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. install.inc
|
|
|
|
|
2021-03-04 15:36:22 +01:00
|
|
|
declare -a drives
|
2021-03-02 15:45:59 +01:00
|
|
|
|
2021-03-04 15:36:22 +01:00
|
|
|
drives=("$@")
|
|
|
|
|
|
|
|
if [ ${#drives[@]} -eq 0 ]; then
|
|
|
|
echo "Usage install.sh /dev/drive1 [/dev/drive2 [/dev/drive3 ]]"
|
2021-03-02 15:45:59 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
get_streams
|
|
|
|
get_latest_maas_id
|
2021-03-04 15:36:22 +01:00
|
|
|
|
|
|
|
for drive in "${drives[@]}"; do
|
|
|
|
download_version "$release_version" "$drive"
|
|
|
|
install_version "$release_version" "$drive"
|
|
|
|
update_syslinux_menu "$drive"
|
|
|
|
done
|
2021-03-02 20:00:26 +01:00
|
|
|
cleanup_temp
|