From 01bbad7c794cc8ff00cca9d6ff70bc441b0e1072 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 4 Jul 2017 20:13:25 +0700 Subject: [PATCH] Install Date [HP-UX]: Add initial support --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 3e4e655b..2c3a7ff0 100755 --- a/neofetch +++ b/neofetch @@ -2112,6 +2112,7 @@ get_install_date() { esac ;; "AIX") install_file="/var/adm/ras/bosinstlog" ;; + "HP-UX") install_file="/dev/config" ;; esac ls_prog="$(ls --version 2>&1)" @@ -2120,7 +2121,7 @@ get_install_date() { *"crtime"*) install_date="$(ls -tdcE "$install_file" | awk '{printf $6 " " $7}')" ;; # xpg4 (Solaris) *"ACFHLRSZ"*) install_date="$(ls -dl "$install_file" | awk '{printf $6 " " $7}')" ;; # Toybox *"GNU coreutils"*) install_date="$(ls -tcd --full-time "$install_file" | awk '{printf $6 " " $7}')" ;; - *"ACFHLNRS"* | *"RadC1xmnlog"*) err "Install Date doesn't work because your 'ls' does not support showing full date and time."; return ;; # AIX ls / IRIX ls + *"ACFHLNRS"* | *"RadC1xmnlog"* | *"1ARadeCx"*) err "Install Date doesn't work because your 'ls' does not support showing full date and time."; return ;; # AIX, IRIX, and HP-UX ls *) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;; esac