diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-04-20 16:39:25 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-04-20 16:39:25 +0200 |
commit | 030a57619cf84868a2765f90cf3d9647e3433aff (patch) | |
tree | 6fa67ef64e0dd0105c9413f08c3b7c1762dfde45 /xuname | |
parent | c5136aa720bcf5f25533fd811f752c142c725e05 (diff) | |
download | xtools-030a57619cf84868a2765f90cf3d9647e3433aff.tar.gz xtools-030a57619cf84868a2765f90cf3d9647e3433aff.tar.xz xtools-030a57619cf84868a2765f90cf3d9647e3433aff.zip |
xuname: tweaks, show hold
Diffstat (limited to 'xuname')
-rwxr-xr-x | xuname | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xuname b/xuname index 198399d..ed3b442 100755 --- a/xuname +++ b/xuname @@ -5,6 +5,7 @@ OS=Void KVER=$(uname -r) MACH=$(xbps-uhelper arch) OUTDATED=$(xbps-install -Mun) +HOLD=$(xbps-query -H) VM=$(dmesg | awk '/Hypervisor detected/{print $NF}') CPU=$(cat /proc/cpuinfo |awk '/^vendor_id/{print $NF;exit}') REPO=$(xbps-query --regex -p repository -s '.' | cut -d/ -f2- | sort -u | awk ' @@ -17,5 +18,5 @@ REPO=$(xbps-query --regex -p repository -s '.' | cut -d/ -f2- | sort -u | awk ' END { print r m d n D F } ') -printf '%s %s %s %s %s %s\n' \ - "$OS" "$KVER" "$MACH" "$CPU${VM+/$VM}" "${OUTDATED+not}uptodate" "$REPO" +printf '%s %s %s %s %s%s %s\n' \ + "$OS" "$KVER" "$MACH" "$CPU${VM:+/$VM}" "${OUTDATED:+not}uptodate" "${HOLD:+ hold}" "$REPO" |