From: Nicolas Boisselier Date: Tue, 11 Apr 2023 00:17:03 +0000 (+0200) Subject: sys_date_install sorted and add path /etc/machine-id X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=75ba9bbae4c3bc6e1df3dd5978d6ebba09f70cc2;p=nb.git sys_date_install sorted and add path /etc/machine-id --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index de1a6670..e7d633b3 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -63,10 +63,11 @@ sys_public_ip() { sys_date_install() { (date -r \ $( \ - ls -1drt \ + ls -1drt --sort=time \ /lost+found \ /etc/ssh/ssh_host_*_key.pub\ /etc/ssh_host_dsa_key.pub \ + /etc/machine-id \ |head -1 \ ) +'%F %T' \ ) 2>/dev/null