OSDN Git Service

run locale gen
[instantos/instantARCH.git] / archinstall.sh
1 #!/bin/bash
2
3 # main script calling others
4
5 # DO NOT USE, NOT READY YET
6
7 # check for internet
8 if ! ping -c 1 google.com &>/dev/null; then
9     echo "no internet"
10     exit
11 fi
12
13 # print logo
14 curl -s 'https://raw.githubusercontent.com/instantOS/instantLOGO/master/ascii.txt'
15 echo ""
16
17 echo "selecting fastest mirror"
18 # sort mirrors
19 pacman -Sy --noconfirm
20 pacman -S reflector --noconfirm
21 reflector --sort rate --save /etc/pacman.d/mirrorlist
22
23 # install dependencies
24 pacman -Sy --noconfirm
25 pacman -S git --noconfirm --needed
26
27 cd /root
28 git clone --depth=1 https://github.com/instantos/instantARCH.git
29 cd instantARCH
30
31 chmod +x *.sh
32 chmod +x **/*.sh
33 echo "local install"
34 ./localinstall.sh
35 echo "in-system install"
36 ./systeminstall.sh
37
38 echo "done installing arch linux"