about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-04-20 16:39:25 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-04-20 16:39:25 +0200
commit030a57619cf84868a2765f90cf3d9647e3433aff (patch)
tree6fa67ef64e0dd0105c9413f08c3b7c1762dfde45
parentc5136aa720bcf5f25533fd811f752c142c725e05 (diff)
downloadxtools-030a57619cf84868a2765f90cf3d9647e3433aff.tar.gz
xtools-030a57619cf84868a2765f90cf3d9647e3433aff.tar.xz
xtools-030a57619cf84868a2765f90cf3d9647e3433aff.zip
xuname: tweaks, show hold
-rwxr-xr-xxuname5
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"