summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-08-26 16:59:02 +0200
committerLeah Neukirchen <leah@vuxu.org>2019-08-26 16:59:02 +0200
commit4c076bcecbcc3a690a07ee5c2f5f560717846f76 (patch)
tree78a9b55d20295a96b3d4dcd4bc154e32f5c10f36
parentd6413190ff29a1753172b1634c88ea446ef89ad0 (diff)
downloadxtools-4c076bcecbcc3a690a07ee5c2f5f560717846f76.tar.gz
xtools-4c076bcecbcc3a690a07ee5c2f5f560717846f76.tar.xz
xtools-4c076bcecbcc3a690a07ee5c2f5f560717846f76.zip
xuname: silence dmesg errors
Closes #148.
-rwxr-xr-xxuname2
1 files changed, 1 insertions, 1 deletions
diff --git a/xuname b/xuname
index 065e3c0..8e06da4 100755
--- a/xuname
+++ b/xuname
@@ -6,7 +6,7 @@ KVER=$(uname -r)
 MACH=$(xbps-uhelper arch)
 OUTDATED=$(xbps-install -Mun)
 HOLD=$(xbps-query -H)
-VM=$(dmesg | awk '/Hypervisor detected/{print $NF}')
+VM=$(dmesg 2>/dev/null | 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 '
 	/^\/alpha.de.repo.voidlinux.org\/current\/multilib/ {m=m"m"}