1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -06:00

Add ethernet-on-boot.sh

This commit is contained in:
Sayantan Santra 2022-09-08 00:41:33 -05:00
parent beb8d1c5b8
commit d462e13550

6
ethernet-on-boot.sh Executable file
View file

@ -0,0 +1,6 @@
#!/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"