added MAC custom info
added function that will pull and display MAC address
This commit is contained in:
parent
ccd5d9f526
commit
72799a842c
1 changed files with 5 additions and 0 deletions
5
neofetch
5
neofetch
|
@ -3923,6 +3923,11 @@ get_public_ip() {
|
|||
fi
|
||||
}
|
||||
|
||||
get_hwaddr() {
|
||||
hwaddr="$(ip route get 1 | awk '{print $5}')"
|
||||
hwaddr="$(ip link show dev "$hwaddr" | awk '/ether/ {print $2}')"
|
||||
}
|
||||
|
||||
get_users() {
|
||||
users="$(who | awk '!seen[$1]++ {printf $1 ", "}')"
|
||||
users="${users%\,*}"
|
||||
|
|
Loading…
Reference in a new issue