Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SSDTTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def main(self):
print("1. FixHPET - Patch out IRQ Conflicts")
print("2. FakeEC - OS-aware Fake EC")
print("3. PluginType - Sets plugin-type = 1 on CPU0/PR00")
if sys.platform == "linux" or sys.platform == "win32":
if sys.platform.startswith('linux') or sys.platform == "win32":
print("4. Dump DSDT - Automatically dump the system DSDT")
print("")
print("D. Select DSDT or origin folder")
Expand All @@ -703,7 +703,7 @@ def main(self):
elif menu == "3":
self.plugin_type()
elif menu == "4":
if sys.platform == "linux" or sys.platform == "win32":
if sys.platform.startswith('linux') or sys.platform == "win32":
self.dsdt = self.d.dump_dsdt(self.output)
else:
return
Expand Down
6 changes: 3 additions & 3 deletions Scripts/dsdt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# 0.0.0
import os, tempfile, shutil, plistlib, sys, binascii, zipfile
import getpass, os, tempfile, shutil, plistlib, sys, binascii, zipfile
sys.path.append(os.path.abspath(os.path.dirname(os.path.realpath(__file__))))
import run, downloader, utils

Expand Down Expand Up @@ -90,7 +90,7 @@ def check_iasl(self):
try:
if sys.platform == "darwin":
self._download_and_extract(temp,self.iasl_url_macOS)
elif sys.platform == "linux":
elif sys.platform.startswith('linux'):
self._download_and_extract(temp,self.iasl_url_linux)
elif sys.platform == "win32":
self._download_and_extract(temp,self.iasl_url_windows)
Expand Down Expand Up @@ -134,7 +134,7 @@ def dump_dsdt(self, output):
self.u.head("Dumping DSDT")
print("")
res = self.check_output(output)
if sys.platform == "linux":
if sys.platform.startswith('linux'):
print("Checking if DSDT exists")
e = "/sys/firmware/acpi/tables/DSDT"
dsdt_path = os.path.join(res,"DSDT.aml")
Expand Down