970177482b
- Basic archiso profile with CLI-only system - Custom 'samios' CLI tool for system management - BIOS (syslinux) and UEFI (grub) boot support - System configuration (hostname, locale, network) - Automated script for first boot - Mirror selection utility - Documentation (README, installation guide, roadmap) - Font policy: excludes fonts with '7777' in name Next: automated installer, desktop environment, testing
39 lines
1.4 KiB
Bash
Executable File
39 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# SamiOS mirror selection script
|
|
|
|
if [ -t 0 ]; then
|
|
echo "Select a mirror country:"
|
|
select country in "United States" "United Kingdom" "Germany" "Japan" "Australia" "All"; do
|
|
case $country in
|
|
"United States" )
|
|
reflector --country "United States" --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
|
|
break
|
|
;;
|
|
"United Kingdom" )
|
|
reflector --country "United Kingdom" --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
|
|
break
|
|
;;
|
|
"Germany" )
|
|
reflector --country "Germany" --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
|
|
break
|
|
;;
|
|
"Japan" )
|
|
reflector --country "Japan" --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
|
|
break
|
|
;;
|
|
"Australia" )
|
|
reflector --country "Australia" --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
|
|
break
|
|
;;
|
|
"All" )
|
|
reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
|
|
break
|
|
;;
|
|
esac
|
|
done
|
|
echo "Mirror list updated!"
|
|
else
|
|
echo "This script requires an interactive terminal"
|
|
exit 1
|
|
fi
|