summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-06-18 10:55:19 +0200
committerSimon Rettberg2021-06-18 10:55:19 +0200
commitaaa03f0005d3aa9813cd418a6905f91e39a976b9 (patch)
tree21312d7a83d811e344a426685ae1ffbb7f81e6d6
parent[dev] dev_find_paritions: Add debug output, better hex2bin support (diff)
downloadslx-tools-aaa03f0005d3aa9813cd418a6905f91e39a976b9.tar.gz
slx-tools-aaa03f0005d3aa9813cd418a6905f91e39a976b9.tar.xz
slx-tools-aaa03f0005d3aa9813cd418a6905f91e39a976b9.zip
[dev] dev_get_type = 0f is an extended partition too...
-rw-r--r--modules/dev.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/dev.inc b/modules/dev.inc
index 1c804a3..6d66678 100644
--- a/modules/dev.inc
+++ b/modules/dev.inc
@@ -100,9 +100,12 @@ dev_get_type() {
local no id ex_start log_id log_start next_id next_start current
for no in 1 2 3 4; do
id="$( __read_mbrid "$dev" 0 "$no" )"
- [ "$id" = "05" ] && break
+ if [ "$id" = "05" ] || [ "$id" = "0f" ]; then
+ id="found"
+ break
+ fi
done
- if [ "$id" != "05" ]; then
+ if [ "$id" != "found" ]; then
echo "No matching extended primary partition found" >&2
else
echo "Primary $no is extended partition" >&2