This commit is contained in:
2022-12-12 15:59:27 +01:00
parent 66945b37e4
commit d15f3ea237
5 changed files with 28 additions and 23 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/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}')"
@ -8,4 +8,4 @@ then
exit;
fi
echo "$wlp"
echo "$wlp"