Commit e9535df7 by irul

Mengganti grep ip yg lebih informatif

1 parent 295d62f3
......@@ -22,7 +22,9 @@ echo ""
echo -e "Operating System: "`cat /etc/*release | grep PRETTY_NAME | cut -d "=" -f 2 | tr -d '"'`
echo -e "Using Systemd: "`pidof systemd && echo "True" || echo "False"`
echo -e "Hostname: "`hostname`
echo -e "Server IP: "`hostname -I`
echo ""
# echo -e "Server IP: "`hostname -I`
echo -e "Server IP: "`/sbin/ip -4 a | grep "inet " | tail -n +2 | awk '{print $7 "=" $2}'`
echo -e "Default Gateway: "`ip route show | sed 's/\(\S\+\s\+\)\?default via \(\S\+\).*/\2/p; d'`
echo -e "Uptime: "`uptime | awk '{print $3,$4}' | sed 's/,//'`
echo ""
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!