You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
487 B
22 lines
487 B
#!/usr/bin/bash
|
|
|
|
ENABLED=yes
|
|
[[ ${ENABLED} == yes ]] || exit 0
|
|
|
|
DEBUGMODE=no
|
|
. /usr/lib/ublinux/functions
|
|
debug_mode "$0" "$@"
|
|
|
|
init_pacman_gpg() {
|
|
pacman-key --init &>/dev/null
|
|
pacman-key --populate $(ls /usr/share/pacman/keyrings/*.gpg | sed 's%.*/%%;s%\.[^.]*$%%') &>/dev/null
|
|
#usr/bin/pacman-key --updatedb
|
|
}
|
|
|
|
[[ -d /etc/pacman.d/gnupg ]] || init_pacman_gpg
|
|
if ! /usr/bin/pacman-key -l &>/dev/null 2>&1; then
|
|
rm -rdf /etc/pacman.d/gnupg
|
|
init_pacman_gpg
|
|
fi
|
|
|