From cca0ae3e96134af744b42190a4382e9f6905f02b Mon Sep 17 00:00:00 2001 From: gutosie Date: Mon, 13 Jan 2020 20:17:40 +0200 Subject: [PATCH] fix 8.10 --- NeoBoot/files/stbbranding.py | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index dfd55a5..8b61847 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -212,6 +212,43 @@ def getNeoMount2(): return neo +def getNeoMount3(): + neo='UNKNOWN' + if os.path.exists('/proc/mounts'): + with open('/proc/mounts', 'r') as f: + lines = f.read() + f.close() + if lines.find('/dev/sda1 /media/cf') != -1: + neo='cf_install_/dev/sda1' + elif lines.find('/dev/sdb1 /media/cf') != -1: + neo='cf_install_/dev/sdb1' + return neo + +def getNeoMount4(): + neo='UNKNOWN' + if os.path.exists('/proc/mounts'): + with open('/proc/mounts', 'r') as f: + lines = f.read() + f.close() + if lines.find('/dev/sda1 /media/card') != -1: + neo='card_install_/dev/sda1' + elif lines.find('/dev/sdb1 /media/card') != -1: + neo='card_install_/dev/sdb1' + return neo + +def getNeoMount5(): + neo='UNKNOWN' + if os.path.exists('/proc/mounts'): + with open('/proc/mounts', 'r') as f: + lines = f.read() + f.close() + if lines.find('/dev/sda1 /media/mmc') != -1: + neo='mmc_install_/dev/sda1' + elif lines.find('/dev/sdb1 /media/mmc') != -1: + neo='mmc_install_/dev/sdb1' + return neo + + #zwraca typ chipa prcesora def getCPUSoC(): chipset='UNKNOWN'