Example post script for Mellanox NIC driver installation - cablelabs/snaps-boot GitHub Wiki
#!/bin/bash
wget -nv http://content.mellanox.com/ofed/MLNX_EN-4.4-2.0.7.0/mlnx-en-4.4-2.0.7.0-ubuntu16.04-x86_64.iso -O /var/log/mellanox_driver.iso
apt-get update && apt-get install -y —no-install-recommends linux-headers-4.4.0-62-generic
mount -o ro,loop /var/log/mellanox_driver.iso /mnt
/mnt/install —force —add-kernel-support —kernel 4.4.0-62-generic