aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2020-03-09 12:27:53 +0200
committerDylan Araps <dylan.araps@gmail.com>2020-03-09 12:27:53 +0200
commit4cfef9c1e4f3d8df75f629c2ee6292a5a56b5944 (patch)
tree51397a1ef030afb0f52f7a3b6c4c42c4c8dfceec
parentc1cecae824dbb7c045d218a047d47d50b767fa50 (diff)
downloadpfetch-4cfef9c1e4f3d8df75f629c2ee6292a5a56b5944.tar.gz
pfetch: Initial IRIX support.
-rwxr-xr-xpfetch22
1 files changed, 21 insertions, 1 deletions
diff --git a/pfetch b/pfetch
index 9baf21f..b8e2fd7 100755
--- a/pfetch
+++ b/pfetch
@@ -218,7 +218,7 @@ get_kernel() {
case $os in
# Don't print kernel output on some systems as the
# OS name includes it.
- *BSD*|Haiku|Minix) ;;
+ *BSD*|Haiku|Minix|IRIX*) ;;
*)
# '$kernel' is the cached output of 'uname -r'.
@@ -336,6 +336,10 @@ get_uptime() {
$(kstat -p unix:0:system_misc:snaptime)
EOF
;;
+
+ IRIX*)
+ # TODO
+ ;;
esac
# Convert the uptime from seconds into days, hours and minutes.
@@ -447,6 +451,11 @@ get_pkgs() {
has pkginfo && pkginfo -i
has pkg && pkg list
;;
+
+ IRIX*)
+ # TODO: result - 3.
+ versions -b
+ ;;
esac | wc -l
`
@@ -630,6 +639,10 @@ get_memory() {
mem_free=$((pages_free * hw_pagesize / 1024 / 1024))
mem_used=$((mem_full - mem_free))
;;
+
+ IRIX*)
+ # TODO
+ ;;
esac
log memory "${mem_used:-?}M / ${mem_full:-?}M"
@@ -1035,6 +1048,13 @@ get_ascii() {
EOF
;;
+ [Ii]rix*)
+ read_ascii 4 <<-EOF
+ TODO
+ EOF
+ ;;
+
+
[Ll]inux*[Ll]ite*|[Ll]ite*)
read_ascii 3 <<-EOF
${c3} /\\