From 9675381dc5746321f43c0b5196da8bf2f2196821 Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 24 Feb 2019 08:58:35 +0200 Subject: [PATCH] 2.11 fix mount --- NeoBoot/files/stbbranding.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index 9bb9f17..b2bc9ae 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -66,7 +66,7 @@ def getFSTAB(): install='NOinstall' return install -#check noe +#checking device neo def getNeoMount(): neo='UNKNOWN' if os.path.exists('/proc/mounts'): @@ -75,10 +75,24 @@ def getNeoMount(): f.close() if lines.find('/dev/sda1 /media/neoboot') != -1: neo='neo_install_/dev/sda1' + if lines.find('/dev/sda2 /media/neoboot') != -1: + neo='neo_install_/dev/sda2' elif lines.find('/dev/sdb1 /media/neoboot') != -1: neo='neo_install_/dev/sdb1' + elif lines.find('/dev/sdb2 /media/neoboot') != -1: + neo='neo_install_/dev/sdb2' + elif lines.find('/dev/sdc1 /media/neoboot') != -1: + neo='neo_install_/dev/sdc1' + elif lines.find('/dev/sdd1 /media/neoboot') != -1: + neo='neo_install_/dev/sdd1' + elif lines.find('/dev/sde1 /media/neoboot') != -1: + neo='neo_install_/dev/sde1' + elif lines.find('/dev/sdf1 /media/neoboot') != -1: + neo='neo_install_/dev/sdf1' + return neo + #zwraca typ chipa prcesora def getCPUSoC(): chipset='UNKNOWN'