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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#!/usr/bin/bash
#
# Author: Dmitry Razumov <asmeron@ublinux.com>
# Copyright (c) 2021-2025 UBLinux <support@ublinux.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
ENABLED = yes
[ [ ${ ENABLED } = = "yes" ] ] || { return 0 2>/dev/null && return 0 || exit 0; }
DEBUGMODE = no
SOURCE = /usr/lib/ublinux/functions; [ [ -f ${ SOURCE } ] ] && . ${ SOURCE } 2>/dev/null || exit 0
debug_mode " $0 " " $@ "
exec_01_init_pacman_gpg( ) {
/usr/bin/pacman-key -l & >/dev/null 2>& 1 || rm -rdf /etc/pacman.d/gnupg
pacman-key --init & >/dev/null
pacman-key --populate $( ls /usr/share/pacman/keyrings/*.gpg | sed 's%.*/%%;s%\.[^.]*$%%' ) & >/dev/null
#usr/bin/pacman-key --updatedb
}
exec_02_install_pkg_tar( ) {
find /memory/layer-base/*/install -maxdepth 1 -type f -name "*.pkg.tar.*" -exec pacman -U --noprogressbar --noconfirm { } + 2>/dev/null
}
################
##### MAIN #####
################
# Если файл подключен как р е с у р с с функциями, то выйти
return 0 2>/dev/null && return 0
exec_01_init_pacman_gpg $@ &
exec_02_install_pkg_tar $@ &