mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-13 12:12:12 +00:00
Install Date [HP-UX]: Add initial support
This commit is contained in:
3
neofetch
3
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user