From d462e135504d4fde4afb53ac2609081a4e973c4d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 8 Sep 2022 00:41:33 -0500 Subject: [PATCH] Add ethernet-on-boot.sh --- ethernet-on-boot.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 ethernet-on-boot.sh diff --git a/ethernet-on-boot.sh b/ethernet-on-boot.sh new file mode 100755 index 0000000..7bd0bb6 --- /dev/null +++ b/ethernet-on-boot.sh @@ -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" +