mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2025-04-04 23:11:11 +00:00
Changing aur to aurman and including Service to mount Multimedia partition
This commit is contained in:
parent
28707860e9
commit
7726b65142
0
Pacman/aur.sh
Normal file → Executable file
0
Pacman/aur.sh
Normal file → Executable file
23
Pacman/updateRepositories.sh
Normal file → Executable file
23
Pacman/updateRepositories.sh
Normal file → Executable file
@ -1,26 +1,13 @@
|
|||||||
echo -n Please type your sudo password:
|
echo -n Please type your sudo password:
|
||||||
read -s sudoPass
|
read -s sudoPass
|
||||||
echo;
|
echo;
|
||||||
check_pkgversion() {
|
echo "$sudoPass" | sudo -S pacman-mirrors -g
|
||||||
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
|
echo
|
||||||
echo Updating with Pacman...
|
echo Updating with Pacman...
|
||||||
echo
|
echo
|
||||||
echo "$sudoPass" | sudo -S pacman -Syu --color always && sudo pacman-mirrors -g
|
echo "$sudoPass" | sudo -S pacman -Syu --color always
|
||||||
echo
|
echo;
|
||||||
aurpkgs=$(pacman -Qm | awk '{print $1}')
|
aurman -Su --color always
|
||||||
for line in $aurpkgs
|
echo;
|
||||||
do
|
|
||||||
vcheck=$(check_pkgversion $line)
|
|
||||||
if [[ $vcheck == 1 ]]; then
|
|
||||||
source ~/aur.sh "$line" "$sudoPass"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "$sudoPass" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
|
echo "$sudoPass" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
|
||||||
notify-send "Update script has finished!"
|
notify-send "Update script has finished!"
|
||||||
|
10
Services/mount-Multimedia-Out-of-fstab.service
Normal file
10
Services/mount-Multimedia-Out-of-fstab.service
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user