Update
This commit is contained in:
parent
5b37ae2829
commit
d0827459b2
|
@ -1,5 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Exec=/usr/bin/bash ~/.local/userbin/key-sign.sh
|
Exec=/usr/bin/bash ~/.local/bin/key-sign.sh
|
||||||
Icon=
|
Icon=
|
||||||
Name=key-sign.sh
|
Name=key-sign.sh
|
||||||
Path=
|
Path=
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Exec=/usr/bin/bash ~/.local/userbin/reset-layout.sh
|
Exec=/usr/bin/bash ~/.local/bin/reset-layout.sh
|
||||||
Icon=
|
Icon=
|
||||||
Name=reset-layout.sh
|
Name=reset-layout.sh
|
||||||
Path=
|
Path=
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Exec=/usr/bin/bash ~/.local/userbin/set-default-web-browser.sh
|
Exec=/usr/bin/bash ~/.local/bin/set-default-web-browser.sh
|
||||||
Icon=
|
Icon=
|
||||||
Name=set-default-web-browser.sh
|
Name=set-default-web-browser.sh
|
||||||
Path=
|
Path=
|
||||||
|
|
|
@ -8,6 +8,9 @@ else
|
||||||
echo "USER IS ROOT"
|
echo "USER IS ROOT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ping -c 1 1.1.1.1 > /dev/null
|
||||||
|
have_internet="$?"
|
||||||
|
|
||||||
# sleep 1
|
# sleep 1
|
||||||
|
|
||||||
cd "/root"
|
cd "/root"
|
||||||
|
@ -22,21 +25,24 @@ pkill haveged
|
||||||
pacman-key --populate archlinux melawy-linux endeavouros arcolinux chaotic cachyos
|
pacman-key --populate archlinux melawy-linux endeavouros arcolinux chaotic cachyos
|
||||||
|
|
||||||
pacman-key --lsign-key melawy-linux
|
pacman-key --lsign-key melawy-linux
|
||||||
pacman-key --lsign-key endeavouros
|
pacman-key --lsign-key cachyos
|
||||||
pacman-key --lsign-key arcolinux
|
pacman-key --lsign-key arcolinux
|
||||||
pacman-key --lsign-key chaotic
|
pacman-key --lsign-key chaotic
|
||||||
pacman-key --lsign-key cachyos
|
pacman-key --lsign-key endeavouros
|
||||||
|
|
||||||
|
if [ "$have_internet" -eq 0 ]; then
|
||||||
pacman-key --recv-keys valeria@fadeeva.me --keyserver hkps://keys.openpgp.org
|
pacman-key --recv-keys valeria@fadeeva.me --keyserver hkps://keys.openpgp.org
|
||||||
pacman-key --lsign-key valeria@fadeeva.me
|
pacman-key --lsign-key valeria@fadeeva.me
|
||||||
|
|
||||||
pacman-key --recv-keys key@fadeeva.me --keyserver hkps://keys.openpgp.org
|
pacman-key --recv-keys key@fadeeva.me --keyserver hkps://keys.openpgp.org
|
||||||
pacman-key --lsign-key key@fadeeva.me
|
pacman-key --lsign-key key@fadeeva.me
|
||||||
|
fi
|
||||||
|
|
||||||
pacman-key --updatedb
|
pacman-key --updatedb
|
||||||
|
|
||||||
|
if [ "$have_internet" -eq 0 ]; then
|
||||||
pacman -Syy
|
pacman -Syy
|
||||||
|
fi
|
||||||
|
|
||||||
title="Successed!"
|
title="Successed!"
|
||||||
msg="$(date '+%Y.%m.%d %H:%M:%S')"
|
msg="$(date '+%Y.%m.%d %H:%M:%S')"
|
||||||
|
@ -62,6 +68,6 @@ do
|
||||||
|
|
||||||
if [ "$user" != "liveuser" ]; then
|
if [ "$user" != "liveuser" ]; then
|
||||||
rm /home/"$user"/.config/autostart/key-sign.sh.desktop
|
rm /home/"$user"/.config/autostart/key-sign.sh.desktop
|
||||||
rm /home/"$user"/.local/userbin/key-sign.sh
|
rm /home/"$user"/.local/bin/key-sign.sh
|
||||||
fi
|
fi
|
||||||
done
|
done
|
|
@ -11,5 +11,5 @@ notify-send -t 5000 -a "Theme is" "$theme" "$(date '+%Y.%m.%d %H:%M:%S')"
|
||||||
if [ "$(whoami)" != "liveuser" ]; then
|
if [ "$(whoami)" != "liveuser" ]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
rm "$HOME/.config/autostart/reset-layout.desktop"
|
rm "$HOME/.config/autostart/reset-layout.desktop"
|
||||||
rm "$HOME/.local/userbin/reset-layout.sh"
|
rm "$HOME/.local/bin/reset-layout.sh"
|
||||||
fi
|
fi
|
|
@ -11,5 +11,5 @@ notify-send -t 5000 -a "Default browser is" "$browser" "$(date '+%Y.%m.%d %H:%M:
|
||||||
if [ "$(whoami)" != "liveuser" ]; then
|
if [ "$(whoami)" != "liveuser" ]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
rm "$HOME/.config/autostart/set-default-web-browser.desktop"
|
rm "$HOME/.config/autostart/set-default-web-browser.desktop"
|
||||||
rm "$HOME/.local/userbin/set-default-web-browser.sh"
|
rm "$HOME/.local/bin/set-default-web-browser.sh"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue