always show local mode on login

This commit is contained in:
Tobias Powalowski 2022-06-03 07:51:19 +02:00
parent fa0944d129
commit 0857ebd7c8

View file

@ -14,11 +14,11 @@ _enter_shell() {
fi
}
if [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
echo -e "You are running in \033[92m\033[1mLocal mode\033[0m, with \033[1mlocal package repository\033[0m enabled.\033[0m"
echo -e "To \033[1mswitch\033[0m to \033[1mOnline mode\033[0m:# \033[1m\033[91mrm /var/cache/pacman/pkg/archboot.db\033[0m\033[1m"
fi
if [[ -e /usr/bin/setup ]]; then
if [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
echo -e "You are running in \033[92m\033[1mLocal mode\033[0m, with \033[1mlocal package repository\033[0m enabled.\033[0m"
echo -e "To \033[1mswitch\033[0m to \033[1mOnline mode\033[0m:# \033[1m\033[91mrm /var/cache/pacman/pkg/archboot.db\033[0m\033[1m"
fi
_enter_shell
if ! [[ -e /tmp/.setup ]]; then
setup