summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh')
-rwxr-xr-xconfigs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh53
1 files changed, 26 insertions, 27 deletions
diff --git a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh
index 1de6c85..ca6a356 100755
--- a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh
+++ b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/pt/install.sh
@@ -14,17 +14,17 @@ if [ ! -f ~/.scriptsInstallation/.pacman ]; then
fi
partition(){
-
+
#Search and show the Hard Disks to select
aux=$(ls /dev/sd?)
index=0
for i in $aux; do
hdds[$index]="${i} ${i#/*/} off"
- index=$((index+1))
+ index=$((index+1))
done
hdd=$(dialog --stdout --radiolist "Escolha o Disco" 20 70 50 ${hdds[@]})
-
+
#If exist the line delete
if (cat ~/.scriptsInstallation/temporal | grep "hdd=") &>/dev/null
then
@@ -33,7 +33,7 @@ partition(){
#And add the new line with new parameter
echo "hdd=$hdd" >> ~/.scriptsInstallation/temporal
-
+
selection=$(dialog --stdout --menu "Método de Particionamento" 20 70 50 \
1 "Usar todo o disco com o swap (1GB) e /" \
2 "Usar o gparted para personalizar" )
@@ -46,7 +46,7 @@ partition(){
#Create partition swap and /
parted -s $hdd -- mkpart primary 1MiB 1000MiB mkpart primary 1000MiB -1s
-
+
#Boot option partition /
parted -s $hdd -- set 2 boot on
@@ -56,7 +56,7 @@ partition(){
mkfs.ext4 ${hdd}2
mount ${hdd}2 /mnt
;;
- 2)
+ 2)
gparted $hdd
#Search and show the partitions that select before.
@@ -68,7 +68,7 @@ partition(){
done
partition=$(dialog --stdout --radiolist "Montar a partição /" 20 70 50 ${partitions[@]})
-
+
#Mount partition /
umount /mnt &> /dev/null
mount $partition /mnt
@@ -77,7 +77,7 @@ partition(){
other=0
while [ $other != 3 ]; do
other=$(dialog --stdout --menu "Quer montar outra partição?" 20 70 50 1 "/home" 2 "/boot" 3 "Não")
-
+
case $other in
1)
umount /mnt/home &> /dev/null
@@ -85,17 +85,17 @@ partition(){
mount $(dialog --stdout --radiolist "Montar a partição /home" 20 70 50 ${partitions[@]}) /mnt/home
;;
2)
- umount /mnt/boot &> /dev/null
+ umount /mnt/boot &> /dev/null
mkdir /mnt/boot &> /dev/null
mount $(dialog --stdout --radiolist "Montar a partição /boot" 20 70 50 ${partitions[@]}) /mnt/boot
;;
- *)
+ *)
other=3
;;
esac
done
;;
- esac
+ esac
}
@@ -114,7 +114,7 @@ while [ option != 7 ]; do
1)
partition
;;
- 2)
+ 2)
#Install base system
pacstrap /mnt base-openrc
pacstrap /mnt dialog
@@ -129,13 +129,13 @@ while [ option != 7 ]; do
cp ~/.scriptsInstallation/temporal /mnt
cp ~/.scriptsInstallation/systemConfig.sh /mnt
chmod +x /mnt/systemConfig.sh
- arch-chroot /mnt /systemConfig.sh
- rm -r /mnt/systemConfig.sh
+ arch-chroot /mnt /systemConfig.sh
+ rm -r /mnt/systemConfig.sh
;;
- 5)
+ 5)
#Create a new username and save in temporal, to use after
if (cat ~/.scriptsInstallation/temporal | grep "userName=") &>/dev/null
- then
+ then
sed -i -e '/userName=*/d' ~/.scriptsInstallation/temporal
fi
@@ -144,7 +144,7 @@ while [ option != 7 ]; do
cp ~/.scriptsInstallation/userAccount.sh /mnt
chmod +x /mnt/userAccount.sh
arch-chroot /mnt /userAccount.sh
- rm -r /mnt/userAccount.sh
+ rm -r /mnt/userAccount.sh
;;
6)
#Packages to the X11 live
@@ -173,7 +173,6 @@ while [ option != 7 ]; do
"alsa-utils"
"networkmanager-elogind"
"network-manager-applet"
- "ath9k-htc-firmware"
"iceweasel"
"icedove"
"pidgin"
@@ -189,15 +188,15 @@ while [ option != 7 ]; do
"openrc-desktop"
"polkit-elogind"
"gvfs-mtp"
- "gvfs-gphoto2"
- "xdg-user-dirs"
- "gnome-screenshot"
+ "gphoto2"
+ "xdg-user-dirs"
+ "gnome-screenshot"
)
-
- #Install packages
- pacman -Sy -r /mnt ${packages[@]} --needed --noconfirm
+
+ #Install packages
+ pacstrap /mnt ${packages[@]}
user=$(cat ~/.scriptsInstallation/temporal | grep "userName" )
-
+
#Copy skel in the new system and desktop's background
cp -a /etc/skel/ /mnt/etc/
cp -a /etc/wallpaper.png /mnt/etc/wallpaper.png
@@ -212,7 +211,7 @@ while [ option != 7 ]; do
#Enable services with OpenRC and configure other stuff
chmod +x /mnt/x11.sh
- arch-chroot /mnt /x11.sh
+ arch-chroot /mnt /x11.sh
rm /mnt/x11.sh
;;
*)
@@ -220,7 +219,7 @@ while [ option != 7 ]; do
rm -r /mnt/temporal
umount /mnt/boot &> /dev/null
umount /mnt/home &> /dev/null
- umount /mnt &> /dev/null
+ umount /mnt &> /dev/null
exit
;;
esac