OSDN Git Service

fix mirrorlist generator
[instantos/instantARCH.git] / calamares.sh
1 #!/bin/bash
2
3 # modify the calamares install of a manjaro session
4 # to install instantOS manjaro edition
5
6 if ! command -v calamares_polkit; then
7     echo "please run this on a manjaro live session"
8     exit
9 fi
10
11 sudo sed -i 's/postcfg/postcfg\n        - shellprocess/g' \
12     /etc/calamares/settings.conf
13
14 curl -s 'https://raw.githubusercontent.com/instantOS/instantARCH/master/manjaro/shellprocess.conf' |
15     sudo tee /etc/calamares/modules/shellprocess.conf
16
17 curl -s 'https://raw.githubusercontent.com/instantOS/instantARCH/master/calamares.sh' | sudo tee /usr/bin/instantcalamares
18 sudo chmod +x /usr/bin/instantcalamares