fix local ip fetch
This commit is contained in:
parent
cb7086489e
commit
a41c40d911
1 changed files with 1 additions and 1 deletions
|
|
@ -15,6 +15,6 @@ get_mem() {
|
|||
echo "$USER@$(hostname)"
|
||||
echo 'os: Void Linux x86_64-musl'
|
||||
echo "uptime:$(uptime -p | tr -d 'up')" # 4 hors 20 mintes
|
||||
echo "ip: $(ip a | grep '192.168.178' | cut -d\ -f6 | cut -d/ -f1)"
|
||||
echo "ip: $(ip a | grep -oEm1 '192\.168\.[0-9][0-9][0-9]\.[0-9]+' | head -n1)"
|
||||
echo "pkgs: $(xbps-query -lm | wc -l)"
|
||||
echo "mem: $(get_mem)M"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue