diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2015-12-07 00:38:39 -0500 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2015-12-07 00:38:39 -0500 |
commit | e2fc5e9435bbf064484f02f327edf7c704acec8b (patch) | |
tree | ed3e018f2574c9dc54a1591a7b78e65574b4a97d /.config/login.d | |
parent | ee2bc4b2d622b29870574a511cdbd6d7674c272d (diff) |
SunOS stuff
Diffstat (limited to '.config/login.d')
-rw-r--r-- | .config/login.d/00_quota.sh | 9 |
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 |