mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
Add ethernet-on-boot.sh
This commit is contained in:
parent
beb8d1c5b8
commit
d462e13550
1 changed files with 6 additions and 0 deletions
6
ethernet-on-boot.sh
Executable file
6
ethernet-on-boot.sh
Executable 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"
|
||||
|
Loading…
Reference in a new issue