diff options
Diffstat (limited to 'configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/en')
-rwxr-xr-x | configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/en/install.sh | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/en/install.sh b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/en/install.sh index 4120079..2951347 100755 --- a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/en/install.sh +++ b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/en/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 "Select Hard Disk" 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 "Partitioning method" 20 70 50 \ 1 "Use all disk with swap (1GB) and /" \ 2 "Use gparted to customize" ) @@ -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 "Mount / Partition" 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 "Mount other partition?" 20 70 50 1 "/home" 2 "/boot" 3 "No") - + case $other in 1) umount /mnt/home &> /dev/null @@ -85,17 +85,17 @@ partition(){ mount $(dialog --stdout --radiolist "Mount /home Partition" 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 "Mount /boot Partition" 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 |