Check for updates first, then check for kernel

This commit is contained in:
Luis Guzmán 2020-09-29 21:42:19 -05:00
parent 18da44e1f7
commit 14a3d47e99
1 changed files with 4 additions and 4 deletions

View File

@ -30,14 +30,14 @@ if ! [ $(id -u) = 0 ]; then
exit 0
fi
JITSI_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f1)
SND_AL_MODULE=$(lsmod | awk '{print$1}'| grep snd_aloop)
HWE_VIR_MOD=$(apt-cache madison linux-modules-extra-virtual-hwe-$(lsb_release -sr) 2>/dev/null|head -n1|grep -c "extra-virtual-hwe")
echo "Checking for updates...."
apt -q2 update
apt -yq2 install apt-show-versions
JITSI_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f1)
SND_AL_MODULE=$(lsmod | awk '{print$1}'| grep snd_aloop)
HWE_VIR_MOD=$(apt-cache madison linux-modules-extra-virtual-hwe-$(lsb_release -sr) 2>/dev/null|head -n1|grep -c "extra-virtual-hwe")
echo -e "\n# Check repository\n"
if [ -z $JITSI_REPO ]; then
echo "No repository detected, wait whaaaat?..."