scripts added

This commit is contained in:
2023-02-24 10:48:23 +01:00
parent d15f3ea237
commit a3a8eb13d8
5 changed files with 36 additions and 16 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
eth="$(ip -4 addr show enp8s0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')"
wlp="$(ip -4 addr show wlp7s0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')"
eth="$(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')"
wlp="$(ip -4 addr show wlan0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')"
if [[ $(echo $eth | wc -c) -gt 1 ]]
then