You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes for Hauku OS, tested on Haiku build hrev59000 and higher.
Adapted uptime
Fixed GPU to take only the one containing "VGA" in listdev description
Added Haiku specific block in detectdisk() funcon
Adapted RAN memory detection in Haiku block
1379c1379
< uptime=$(uptime | sed 's/.*up //; s/, [0-9] user.//')
Fixes for Hauku OS, tested on Haiku build hrev59000 and higher.
Adapted uptime
Fixed GPU to take only the one containing "VGA" in listdev description
Added Haiku specific block in detectdisk() funcon
Adapted RAN memory detection in Haiku block
1379c1379
< uptime=$(uptime | sed 's/.*up //; s/, [0-9] user.//')
1696c1696
< gpu="$(listdev | grep -A2 -e 'device Display controller (VGA' | "${AWK}" -F': ' '/^ +device/ {print $2}')"
1793,1802d1792
<
< if [[ "$distro" == "Haiku" ]]; then
< df_output=$(df -h | head -n 3 | tail -n 1)
< diskused=$(echo "$df_output" | awk '{print $4}')
< disktotal=$(echo "$df_output" | awk '{print $2}')
< diskusedper=$(echo "$df_output" | awk '{print $5}')
< diskusage="$diskused / $disktotal ($diskusedper)"
< return
< fi
<
1885,1887c1875,1876
< totalmem=$(sysinfo -mem | awk 'NR == 1 {gsub(/[()/]/, ""); printf("%d", $6/(10241024))}')
< usedmem=$(sysinfo -mem | awk 'NR == 1 {gsub(/[()/]/, ""); printf("%d", $5/(10241024))}')
< mem="$usedmem""MiB / ""$totalmem""MiB"