1
0
Fork 0

add check before installing new kernel

This commit is contained in:
VirtuBox 2019-08-04 11:37:31 +02:00
parent 7b700f0d28
commit 0210e0552b
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 7 additions and 1 deletions

View File

@ -461,6 +461,12 @@ _APT_REPO_UBUNTU() {
wget -O /etc/apt/sources.list https://vtb.cx/$(lsb_release -sc)-list
}
_APT_BIONIC_KERNEL() {
if [ "$(lsb_release -sc)" = "bionic" ]; then
apt update && apt install --install-recommends linux-generic-hwe-18.04 --assume-yes
fi
}
# enable color support of ls and also add handy aliases
# some more ls aliases
#alias wp='/usr/bin/wp --allow-root'
@ -524,4 +530,4 @@ alias setup-tools=_SETUP_TOOLS
alias rsyslog-ufw=_RSYSLOG_UFW
alias start-ssh=_START_SSH_AGENT
alias apt-repo-ubuntu=_APT_REPO_UBUNTU
alias apt-bionic-kernel='apt update && apt install --install-recommends linux-generic-hwe-18.04 --assume-yes'
alias apt-bionic-kernel=_APT_BIONIC_KERNEL