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" +