random/ethernet-on-boot.sh

7 lines
178 B
Bash
Raw Permalink Normal View History

2022-09-08 00:41:33 -05:00
#!/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"