From: Nicolas Boisselier Date: Tue, 16 Jan 2018 04:20:29 +0000 (+0000) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=74522a5c4cb803be3f53437eaac93c79157db7d7;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index 04815f1d..9cf379ff 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -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 }