random/ethernet-on-boot.sh
2022-12-03 03:09:23 -06:00

6 lines
178 B
Bash

#!/bin/sh
# this is a script to automatically connect to ethernet on boot
[ $(nmcli connect show --active | grep "ethernet\|wifi" | wc -l) == "0" ] && nmcli connect up "pi/3"