mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
always show local mode on login
This commit is contained in:
parent
fa0944d129
commit
0857ebd7c8
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue