aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-11-13 14:53:42 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-11-13 14:53:42 +0800
commit8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6 (patch)
tree5ba83f15a06290126fe1ea77c7b60c47cdfbaba3
parent34c84f8ff35d056db0c5a9c66c30935f5a7e49b7 (diff)
downloadconfigfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.tar
configfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.tar.gz
configfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.tar.bz2
configfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.tar.lz
configfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.tar.xz
configfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.tar.zst
configfile-8e9d96bbed4e8d9eef25488fdcb6d34644bdcfa6.zip
bash_include: 在 get_memory_info 中加入很簡陋的 OpenIndiana 支援
-rw-r--r--bash_include3
1 files changed, 3 insertions, 0 deletions
diff --git a/bash_include b/bash_include
index ae2de55..3147fb0 100644
--- a/bash_include
+++ b/bash_include
@@ -1319,6 +1319,9 @@ function get_memory_info ()
echo "Swap devices"
swapctl -lk
;;
+ *solaris*)
+ top -n | sed -n -e 5p
+ ;;
*)
echo "Unsupported operating system."
;;