Remove the unfinished OpenBSD support as no one wanted to test...

This commit is contained in:
dylan araps 2016-01-06 18:17:43 +11:00
parent 43a22793dd
commit 53496dbd92
1 changed files with 2 additions and 31 deletions

33
fetch
View File

@ -17,7 +17,7 @@
# Speed up script by not using unicode
export LC_ALL=C
export LANG=C
export LANGUAGE=C
# Config Options {{{
@ -224,10 +224,6 @@ case "$(uname)" in
os="Mac OS X"
;;
"OpenBSD")
os="OpenBSD"
;;
"CYGWIN"*)
os="Windows"
;;
@ -249,10 +245,6 @@ case "$os" in
distro="Mac OS X $(sw_vers -productVersion)"
;;
"OpenBSD")
distro="OpenBSD"
;;
"Windows")
case "$(cmd /c ver)" in
*"XP"*)
@ -337,11 +329,6 @@ getuptime () {
esac
;;
"OpenBSD")
uptime=$(uptime | awk -F',' '{print $1}')
uptime=${uptime# }
;;
"Windows")
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
uptime=${uptime/ / }
@ -396,10 +383,6 @@ getpackages () {
packages=${packages//[[:blank:]]/}
;;
"OpenBSD")
packages=$(pkg_info | wc -l)
;;
"Windows"*)
packages=$(cygcheck -cd | wc -l)
;;
@ -470,10 +453,6 @@ getcpu () {
cpu="$(sysctl -n machdep.cpu.brand_string)"
;;
"OpenBSD")
cpu="$(sysctl -n hw.model)"
;;
"Windows")
# Get cpu name
cpu="$(grep -F 'model name' /proc/cpuinfo)"
@ -546,14 +525,6 @@ getmemory () {
memory="${memused}MB / ${memtotal}MB"
;;
"OpenBSD")
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
memused=$(top -1 1 | awk '/Real:/ {print $3}')
memtotal=${memtotal/()MB/}
memused=${memused/M/}
memory="${memused}MB / ${memtotal}MB"
;;
"Windows")
mem="$(awk 'NR < 3 {printf $2 " "}' /proc/meminfo)"
@ -583,7 +554,7 @@ getsong () {
# Get Resolution
getresolution () {
case "$os" in
"Linux"|"OpenBSD")
"Linux")
resolution=$(xdpyinfo | awk '/dimensions:/ {printf $2}')
;;