revert Windows support, needs more testing

This commit is contained in:
dylan araps 2016-01-05 12:16:19 +11:00
parent f289ccd85d
commit 4e3322448d
1 changed files with 1 additions and 23 deletions

View File

@ -205,10 +205,6 @@ case "$(uname)" in
"OpenBSD") "OpenBSD")
os="OpenBSD" os="OpenBSD"
;; ;;
"CYGWIN"*)
os="Windows"
;;
esac esac
# Get Distro # Get Distro
@ -232,15 +228,6 @@ getdistro () {
distro="OpenBSD" distro="OpenBSD"
;; ;;
"Windows")
# TODO: Detect XP/7
if [ "$(wmic os get version | grep -o '^10')" ]; then
distro="Windows 10"
else
distro="Windows"
fi
;;
*) *)
distro="Unknown" distro="Unknown"
;; ;;
@ -304,10 +291,6 @@ getuptime () {
uptime=${uptime# } uptime=${uptime# }
;; ;;
"Windows")
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
;;
*) *)
uptime="Unknown" uptime="Unknown"
;; ;;
@ -361,10 +344,6 @@ getpackages () {
packages=$(pkg_info | wc -l) packages=$(pkg_info | wc -l)
;; ;;
"Windows"*)
packages=$(cygcheck -cd | wc -l)
;;
*) *)
packages="Unknown" packages="Unknown"
;; ;;
@ -884,7 +863,7 @@ printinfo () {
[ "$images" == "on" ] && getimage [ "$images" == "on" ] && getimage
# Clear the terminal and hide the cursor # Clear the terminal and hide the cursor
printf "\e[?25l\033c\e[?25l" printf "\033c\e[?25l"
# Disable line wrap # Disable line wrap
[ $line_wrap == "off" ] && printf '\e[?7l' [ $line_wrap == "off" ] && printf '\e[?7l'
@ -908,4 +887,3 @@ printf "\e[$(tput lines)H\e[1A\e[?25h"
# }}} # }}}