From 7726b65142fe6f1272aa809d1f2896f93337e220 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Mon, 23 Jul 2018 12:26:29 -0300 Subject: [PATCH] Changing aur to aurman and including Service to mount Multimedia partition --- Pacman/aur.sh | 0 Pacman/updateRepositories.sh | 23 ++++--------------- .../mount-Multimedia-Out-of-fstab.service | 10 ++++++++ 3 files changed, 15 insertions(+), 18 deletions(-) mode change 100644 => 100755 Pacman/aur.sh mode change 100644 => 100755 Pacman/updateRepositories.sh create mode 100644 Services/mount-Multimedia-Out-of-fstab.service diff --git a/Pacman/aur.sh b/Pacman/aur.sh old mode 100644 new mode 100755 diff --git a/Pacman/updateRepositories.sh b/Pacman/updateRepositories.sh old mode 100644 new mode 100755 index 05b040a..8266beb --- a/Pacman/updateRepositories.sh +++ b/Pacman/updateRepositories.sh @@ -1,26 +1,13 @@ echo -n Please type your sudo password: read -s sudoPass echo; -check_pkgversion() { - newver=$(curl -s "https://aur.archlinux.org/rpc.php?type=info&arg=$1" | awk -F : '{print $10}' | awk -F , '{print $1}' | sed 's/"//g') - currentver=$(pacman -Qi $1 | awk '{print $3}' | head -n 2 | tail -n 1) - if [[ $newver != $currentver ]]; then - echo 1 - fi -} - +echo "$sudoPass" | sudo -S pacman-mirrors -g echo echo Updating with Pacman... echo -echo "$sudoPass" | sudo -S pacman -Syu --color always && sudo pacman-mirrors -g -echo -aurpkgs=$(pacman -Qm | awk '{print $1}') -for line in $aurpkgs -do - vcheck=$(check_pkgversion $line) - if [[ $vcheck == 1 ]]; then - source ~/aur.sh "$line" "$sudoPass" - fi -done +echo "$sudoPass" | sudo -S pacman -Syu --color always +echo; +aurman -Su --color always +echo; echo "$sudoPass" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always) notify-send "Update script has finished!" diff --git a/Services/mount-Multimedia-Out-of-fstab.service b/Services/mount-Multimedia-Out-of-fstab.service new file mode 100644 index 0000000..5d72a10 --- /dev/null +++ b/Services/mount-Multimedia-Out-of-fstab.service @@ -0,0 +1,10 @@ +[Unit] +Description=Mount Multimedia out of fstab + +[Service] +ExecStart=mount /dev/sdb5 /run/media/bruno/Multimedia + +[Install] +WantedBy=multi-user.target + +# To enable, copy this to "/etc/systemd/system"