Remove the unfinished OpenBSD support as no one wanted to test...
This commit is contained in:
parent
43a22793dd
commit
53496dbd92
33
fetch
33
fetch
|
@ -17,7 +17,7 @@
|
||||||
# Speed up script by not using unicode
|
# Speed up script by not using unicode
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
export LANGUAGE=C
|
||||||
|
|
||||||
# Config Options {{{
|
# Config Options {{{
|
||||||
|
|
||||||
|
@ -224,10 +224,6 @@ case "$(uname)" in
|
||||||
os="Mac OS X"
|
os="Mac OS X"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
|
||||||
os="OpenBSD"
|
|
||||||
;;
|
|
||||||
|
|
||||||
"CYGWIN"*)
|
"CYGWIN"*)
|
||||||
os="Windows"
|
os="Windows"
|
||||||
;;
|
;;
|
||||||
|
@ -249,10 +245,6 @@ case "$os" in
|
||||||
distro="Mac OS X $(sw_vers -productVersion)"
|
distro="Mac OS X $(sw_vers -productVersion)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
|
||||||
distro="OpenBSD"
|
|
||||||
;;
|
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
case "$(cmd /c ver)" in
|
case "$(cmd /c ver)" in
|
||||||
*"XP"*)
|
*"XP"*)
|
||||||
|
@ -337,11 +329,6 @@ getuptime () {
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
|
||||||
uptime=$(uptime | awk -F',' '{print $1}')
|
|
||||||
uptime=${uptime# }
|
|
||||||
;;
|
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
|
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
|
||||||
uptime=${uptime/ / }
|
uptime=${uptime/ / }
|
||||||
|
@ -396,10 +383,6 @@ getpackages () {
|
||||||
packages=${packages//[[:blank:]]/}
|
packages=${packages//[[:blank:]]/}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
|
||||||
packages=$(pkg_info | wc -l)
|
|
||||||
;;
|
|
||||||
|
|
||||||
"Windows"*)
|
"Windows"*)
|
||||||
packages=$(cygcheck -cd | wc -l)
|
packages=$(cygcheck -cd | wc -l)
|
||||||
;;
|
;;
|
||||||
|
@ -470,10 +453,6 @@ getcpu () {
|
||||||
cpu="$(sysctl -n machdep.cpu.brand_string)"
|
cpu="$(sysctl -n machdep.cpu.brand_string)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
|
||||||
cpu="$(sysctl -n hw.model)"
|
|
||||||
;;
|
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
# Get cpu name
|
# Get cpu name
|
||||||
cpu="$(grep -F 'model name' /proc/cpuinfo)"
|
cpu="$(grep -F 'model name' /proc/cpuinfo)"
|
||||||
|
@ -546,14 +525,6 @@ getmemory () {
|
||||||
memory="${memused}MB / ${memtotal}MB"
|
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")
|
"Windows")
|
||||||
mem="$(awk 'NR < 3 {printf $2 " "}' /proc/meminfo)"
|
mem="$(awk 'NR < 3 {printf $2 " "}' /proc/meminfo)"
|
||||||
|
|
||||||
|
@ -583,7 +554,7 @@ getsong () {
|
||||||
# Get Resolution
|
# Get Resolution
|
||||||
getresolution () {
|
getresolution () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux"|"OpenBSD")
|
"Linux")
|
||||||
resolution=$(xdpyinfo | awk '/dimensions:/ {printf $2}')
|
resolution=$(xdpyinfo | awk '/dimensions:/ {printf $2}')
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue