diff options
Diffstat (limited to 'configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/gl/install.sh')
-rwxr-xr-x | configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/gl/install.sh | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/gl/install.sh b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/gl/install.sh index 05ec262..e663e4f 100755 --- a/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/gl/install.sh +++ b/configs/lxde-openrc/airootfs/root/.scriptsInstallation/language/gl/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 "Selecciona Disco Duro" 20 70 50 ${hdds[@]}) - + #If exist the line delete if (cat ~/.scriptsInstallation/temporal | grep "hdd=") &>/dev/null then @@ -45,7 +45,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 @@ -55,7 +55,7 @@ partition(){ mkfs.ext4 ${hdd}2 mount ${hdd}2 /mnt ;; - 2) + 2) gparted $hdd #Search and show the partitions that select before. @@ -67,7 +67,7 @@ partition(){ done partition=$(dialog --stdout --radiolist "Montar particion /" 20 70 50 ${partitions[@]}) - + #Mount partition / umount /mnt &> /dev/null mount $partition /mnt @@ -76,7 +76,7 @@ partition(){ other=0 while [ $other != 3 ]; do other=$(dialog --stdout --menu "¿Montar outra particion?" 20 70 50 1 "/home" 2 "/boot" 3 "No") - + case $other in 1) umount /mnt/home &> /dev/null @@ -84,17 +84,17 @@ partition(){ mount $(dialog --stdout --radiolist "Montar particion /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 "Mount particion /boot" 20 70 50 ${partitions[@]}) /mnt/boot ;; - *) + *) other=3 ;; esac done ;; - esac + esac } @@ -113,7 +113,7 @@ while [ option != 7 ]; do 1) partition ;; - 2) + 2) #Install base system pacstrap /mnt base-openrc pacstrap /mnt dialog @@ -128,13 +128,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 @@ -143,10 +143,10 @@ 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 + #Packages to the X11 live packages=( "xorg-server" "xf86-input-evdev" "xf86-input-synaptics" @@ -172,7 +172,6 @@ while [ option != 7 ]; do "alsa-utils" "networkmanager-elogind" "network-manager-applet" - "ath9k-htc-firmware" "iceweasel" "icedove" "pidgin" @@ -187,20 +186,20 @@ while [ option != 7 ]; do "xarchiver" "openrc-desktop" "polkit-elogind" - "gvfs-mtp" - "gvfs-gphoto2" - "xdg-user-dirs" - "gnome-screenshot" + "gvfs-mtp" + "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 - + #Puts the XKBMAP, start X11 automatically and icewm desktop echo "setxkbmap $(cat ~/.codecheck | grep XKBMAP= | cut -d '=' -f 2)" > /mnt/etc/skel/.xinitrc echo "exec startlxde" >> /mnt/etc/skel/.xinitrc @@ -211,7 +210,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 ;; *) @@ -219,7 +218,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 |