add check before installing new kernel
This commit is contained in:
parent
7b700f0d28
commit
0210e0552b
8
mybashrc
8
mybashrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue