From 74522a5c4cb803be3f53437eaac93c79157db7d7 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 16 Jan 2018 04:20:29 +0000 Subject: [PATCH] etc/profile.d/sys.sh --- etc/profile.d/sys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.47.3