iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fixes
[distro-setup]
/
system-status
diff --git
a/system-status
b/system-status
index c58d9cea7f6eb3efceae04e08d85c1ce386bfa22..ddb5b738c28db81d1f4320ad10200de8b4f3f773 100755
(executable)
--- a/
system-status
+++ b/
system-status
@@
-45,7
+45,10
@@
write-status() {
chars+=("MAILPING!")
fi
chars+=("MAILPING!")
fi
- qlen=$(/usr/sbin/exiqgrep -o 60 -c -b | awk '{print $1}')
+ if ! qlen=$(/usr/sbin/exiqgrep -o 60 -c -b | awk '{print $1}'); then
+ # early in install process, we dont have permission yet for exiqgrep
+ qlen=$(sudo /usr/sbin/exiqgrep -o 60 -c -b | awk '{print $1}')
+ fi
if ((qlen)); then
chars+=("q $qlen")
fi
if ((qlen)); then
chars+=("q $qlen")
fi