summaryrefslogtreecommitdiff
path: root/.config/login.d/00_quota.sh
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2015-12-07 00:38:39 -0500
committerLuke Shumaker <shumakl@purdue.edu>2015-12-07 00:38:39 -0500
commite2fc5e9435bbf064484f02f327edf7c704acec8b (patch)
treeed3e018f2574c9dc54a1591a7b78e65574b4a97d /.config/login.d/00_quota.sh
parentee2bc4b2d622b29870574a511cdbd6d7674c272d (diff)
SunOS stuff
Diffstat (limited to '.config/login.d/00_quota.sh')
-rw-r--r--.config/login.d/00_quota.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/.config/login.d/00_quota.sh b/.config/login.d/00_quota.sh
index afe7211..2befc01 100644
--- a/.config/login.d/00_quota.sh
+++ b/.config/login.d/00_quota.sh
@@ -1,4 +1,9 @@
#!/hint/sh
-if { ! quota -s; } && [ -n "$DISPLAY" ]; then
- xmessage -center "$(quota -s)" &
+if [ "$(uname)" == SunOS ]; then
+ quota -v
+ cat -s /etc/motd
+else
+ if { ! quota -s; } && [ -n "$DISPLAY" ]; then
+ xmessage -center "$(quota -s)" &
+ fi
fi