.github: workaround for missing kernel modules for 5.4.0-1032-azure

This commit is contained in:
bugobliterator 2020-12-16 12:11:21 +05:30 committed by Peter Barker
parent f12191b4b1
commit 1c2e0a887f
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ jobs:
- name: setup can-utils
run: |
sudo apt-get update
sudo apt-get -y install can-utils iproute2 linux-modules-extra-$(uname -r)
echo "Kernel Version: $(uname -r)"
kernel_ver=`uname -r`; if [ "$kernel_ver" = "5.4.0-1032-azure" ]; then sudo apt-get -y install linux-modules-extra-5.4.0-1031-azure;else sudo apt-get -y install linux-modules-extra-$(uname -r) ;fi;
kernel_ver=`uname -r`; if [ "$kernel_ver" = "5.4.0-1032-azure" ]; then sudo cp -r /lib/modules/5.4.0-1031-azure /lib/modules/5.4.0-1032-azure;fi;
sudo apt-get -y install can-utils iproute2
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0