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/env bash
ENABLED = yes
[ [ ${ ENABLED } = = "yes" ] ] || exit 0
DEBUGMODE = no
[ [ -d /usr/lib/ublinux ] ] && { ROOTFS = ; CMD_CHROOT = ; } || { [ [ -d /sysroot ] ] && ROOTFS = "/sysroot" || ROOTFS = "." ; CMD_CHROOT = " chroot ${ ROOTFS } " ; }
SOURCE = ${ ROOTFS } /usr/lib/ublinux/functions; [ [ -f ${ SOURCE } ] ] && . ${ SOURCE } 2>/dev/null || exit 0
SOURCE = ${ ROOTFS } /usr/lib/ublinux/default; [ [ -f ${ SOURCE } ] ] && . ${ SOURCE } 2>/dev/null || exit 0
debug_mode " $0 " " $@ "
SYSCONF = " ${ ROOTFS } ${ SYSCONF } "
SOURCE = ${ SYSCONF } /config; [ [ -f ${ SOURCE } ] ] && . ${ SOURCE } 2>/dev/null
exec_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_install_pkg_tar $@