#!/bin/bash cd # Get the version from the command line argument, or use a default value version=${1:-latest} version=${version,,} # to lowercase # detect the architecture arch=$(dpkg --print-architecture) # install the package deb="netrinos-edgenode-linux_${version}_${arch}.deb" loc=linux/edgenode # Note: Netrinos needs wireguard, nftables, nmap as deps # wireguard, nftable usually in the kernel # nmap installed with apt # Must also uninstall iptables on Nvidia Orin Nano!!!!! rm "/tmp/$deb" wget "https://dist.netrinos.com/$loc/$deb" -O "/tmp/$deb" sudo dpkg -i "/tmp/$deb" rm "/tmp/$deb"