1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00
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"