mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add messages for restoring config files
This commit is contained in:
parent
8105765bb1
commit
d47d43120a
1 changed files with 12 additions and 2 deletions
|
@ -74,6 +74,16 @@ _x86_64_pacman_use_default() {
|
||||||
|
|
||||||
_x86_64_pacman_restore() {
|
_x86_64_pacman_restore() {
|
||||||
# restore pacman.conf and mirrorlist
|
# restore pacman.conf and mirrorlist
|
||||||
[[ -z "${CUSTOM_PACMAN_CONF}" ]] || cp "${_PACMAN_MIRROR}".old "${_PACMAN_MIRROR}"
|
if [[ -z "${_CUSTOM_PACMAN_CONF}" ]]; then
|
||||||
[[ -z "${CUSTOM_MIRRORLIST}" ]] || cp "${_PACMAN_CONF}".old "${_PACMAN_CONF}"
|
echo "System's ${_PACMAN_CONF} used ..."
|
||||||
|
else
|
||||||
|
echo "Restore system's ${_PACMAN_CONF} ..."
|
||||||
|
cp "${_PACMAN_CONF}".old "${_PACMAN_CONF}"
|
||||||
|
fi
|
||||||
|
if [[ -z "${_CUSTOM_MIRRORLIST}" ]]; then
|
||||||
|
echo "System's ${_PACMAN_MIRROR} used ..."
|
||||||
|
else
|
||||||
|
echo "Restore system's ${_PACMAN_CONF} ..."
|
||||||
|
cp "${_PACMAN_MIRROR}".old "${_PACMAN_MIRROR}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue