This commit is contained in:
David Tomaschik
2026-02-12 16:13:01 -08:00
parent 21b24b2c2f
commit 20a5885031
11 changed files with 14 additions and 387 deletions

View File

@@ -1,7 +1,7 @@
function dmesg {
if [ $(id -u) -eq 0 ] ; then
command dmesg "$@"
elif id | grep -q '(sudo)' ; then
elif sudo -n true 2>/dev/null ; then
sudo dmesg "$@"
else
command dmesg "$@"