mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
log pacman
This commit is contained in:
parent
883bb1224d
commit
4e2903b67f
1 changed files with 7 additions and 7 deletions
|
@ -38,13 +38,13 @@ _prepare_graphic() {
|
||||||
rm /.archboot
|
rm /.archboot
|
||||||
# check for qxl module
|
# check for qxl module
|
||||||
if grep -q qxl /proc/modules; then
|
if grep -q qxl /proc/modules; then
|
||||||
echo ${_GRAPHIC} | grep -q xorg && _GRAPHIC="${_GRAPHIC} xf86-video-qxl"
|
echo "${_GRAPHIC}" | grep -q xorg && _GRAPHIC="${_GRAPHIC} xf86-video-qxl"
|
||||||
fi
|
fi
|
||||||
touch /.archboot
|
touch /.archboot
|
||||||
_progress_wait "11" "59" "Running pacman to install packages: ${_GRAPHIC}..." "0.5"
|
_progress_wait "11" "59" "Running pacman to install packages: ${_GRAPHIC}..." "0.5"
|
||||||
for i in ${_GRAPHIC}; do
|
for i in ${_GRAPHIC}; do
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
pacman -S ${i} --noconfirm &>"${_NO_LOG}" || exit 1
|
pacman -S ${i} --noconfirm &>"${_LOG}"
|
||||||
[[ ! -e "/.full_system" ]] && _cleanup_install
|
[[ ! -e "/.full_system" ]] && _cleanup_install
|
||||||
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
|
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
|
||||||
rm -f /var/log/pacman.log
|
rm -f /var/log/pacman.log
|
||||||
|
@ -55,17 +55,17 @@ _prepare_graphic() {
|
||||||
_LANG="be bg cs da de el fi fr hu it lt lv mk nl nn pl ro ru sk sr uk"
|
_LANG="be bg cs da de el fi fr hu it lt lv mk nl nn pl ro ru sk sr uk"
|
||||||
for i in ${_LANG}; do
|
for i in ${_LANG}; do
|
||||||
if grep -q "${i}" /etc/locale.conf; then
|
if grep -q "${i}" /etc/locale.conf; then
|
||||||
pacman -S firefox-i18n-"${i}" --noconfirm &>"${_NO_LOG}" || exit 1
|
pacman -S firefox-i18n-"${i}" --noconfirm &>"${_LOG}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if grep -q en_US /etc/locale.conf; then
|
if grep -q en_US /etc/locale.conf; then
|
||||||
pacman -S firefox-i18n-en-us --noconfirm &>"${_NO_LOG}" || exit 1
|
pacman -S firefox-i18n-en-us --noconfirm &>"${_LOG}"
|
||||||
elif grep -q es_ES /etc/locale.conf; then
|
elif grep -q es_ES /etc/locale.conf; then
|
||||||
pacman -S firefox-i18n-es-es --noconfirm &>"${_NO_LOG}" || exit 1
|
pacman -S firefox-i18n-es-es --noconfirm &>"${_LOG}"
|
||||||
elif grep -q pt_PT /etc/locale.conf; then
|
elif grep -q pt_PT /etc/locale.conf; then
|
||||||
pacman -S firefox-i18n-pt-pt --noconfirm &>"${_NO_LOG}" || exit 1
|
pacman -S firefox-i18n-pt-pt --noconfirm &>"${_LOG}"
|
||||||
elif grep -q sv_SE /etc/locale.conf; then
|
elif grep -q sv_SE /etc/locale.conf; then
|
||||||
pacman -S firefox-i18n-sv-se --noconfirm &>"${_NO_LOG}" || exit 1
|
pacman -S firefox-i18n-sv-se --noconfirm &>"${_LOG}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
rm /.archboot
|
rm /.archboot
|
||||||
|
|
Loading…
Reference in a new issue