Add ethernet-on-boot.sh

This commit is contained in:
Sayantan Santra 2022-09-08 00:41:33 -05:00
parent beb8d1c5b8
commit d462e13550
1 changed files with 6 additions and 0 deletions

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"