]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/sys.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 16 Jan 2018 04:20:29 +0000 (04:20 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 16 Jan 2018 04:20:29 +0000 (04:20 +0000)
etc/profile.d/sys.sh

index 04815f1d9fd3ea93b2b0efd6e49f4b5f8ba13c58..9cf379ff15aba202a063bea23005f5a005176ea4 100644 (file)
@@ -9,7 +9,7 @@ sys_infos() {
 arch${s}$( (arch || sysctl -n hw.machine) 2>/dev/null )
 nproc${s}$( (nproc || sysctl -n hw.ncpu || grep ^proc /proc/cpuinfo | wc -l) 2>/dev/null )
 date_install${s}$( (date -r $(ls -1drt /lost+found /etc/ssh/ssh_host_dsa_key.pub /etc/ssh_host_dsa_key.pub|head -1) +'%F %T') 2>/dev/null )
-myip${s}$(curl -s http://nbdom.net/myip 2>/dev/null)
+ippublic${s}$(curl -s http://nbdom.net/myip 2>/dev/null)
 ips${s}$(echo -n $(ips 2>/dev/null))
 EOF
 }