increase compatiblity with windows
This commit is contained in:
parent
86726e4e49
commit
826ed611b3
2 changed files with 6 additions and 2 deletions
|
@ -14,7 +14,11 @@ if [ -n "$kernel" ]; then
|
||||||
echo "krn: $kernel"
|
echo "krn: $kernel"
|
||||||
fi
|
fi
|
||||||
if [ -n "$distro" ]; then
|
if [ -n "$distro" ]; then
|
||||||
|
if [ "$system_type" = "windows" ]; then
|
||||||
echo "sys:$distro"
|
echo "sys:$distro"
|
||||||
|
else
|
||||||
|
echo "sys: $distro"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -n "$machine" ]; then
|
if [ -n "$machine" ]; then
|
||||||
echo "mac: $machine"
|
echo "mac: $machine"
|
||||||
|
|
|
@ -72,5 +72,5 @@ if [ "$system_type" = "windows" ] && [ -z "$machine"] && [ "$hassed" -eq 1 ]; th
|
||||||
if [ "$hasawk" -eq 1 ]; then
|
if [ "$hasawk" -eq 1 ]; then
|
||||||
distro="$(systeminfo.exe 2>/dev/null | grep -v "BIOS" | grep "OS Version" | awk -F ":" '{print $2}' | tr -s " ")"
|
distro="$(systeminfo.exe 2>/dev/null | grep -v "BIOS" | grep "OS Version" | awk -F ":" '{print $2}' | tr -s " ")"
|
||||||
fi
|
fi
|
||||||
machine="$(wmic.exe computersystem get Manufacturer,Model | sed -n 2p | head -n 1)"
|
machine="$(wmic.exe computersystem get Manufacturer | sed -n 2p | head -n 1 | tr -s " ")$(wmic.exe computersystem get Manufacturer | sed -n 2p | head -n 1)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue