You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
181 B
11 lines
181 B
5 years ago
|
#!/bin/sh
|
||
|
|
||
|
WIRED="${1:-eth0}"
|
||
|
|
||
|
IP="$(ip a show "$WIRED" \
|
||
|
| awk '/inet / { print substr($2, 0, length($2) - 3) }')"
|
||
|
|
||
|
notify-send -r 3 "Wired" "\
|
||
|
Interface: $WIRED
|
||
|
IP: $IP"
|