summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-30 19:32:03 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-30 20:06:32 +0200
commit58acdd03ea1d877831d27bb1fc5c0ebf87b19e13 (patch)
tree6589c177a484d4921ea3e4ea3d400c0895fce13f
parent260765bc43552b7b51f44c0c6f5e91bad2fd8080 (diff)
downloadvendor_replicant-scripts-58acdd03ea1d877831d27bb1fc5c0ebf87b19e13.tar.gz
vendor_replicant-scripts-58acdd03ea1d877831d27bb1fc5c0ebf87b19e13.tar.bz2
vendor_replicant-scripts-58acdd03ea1d877831d27bb1fc5c0ebf87b19e13.zip
add_adb_root: Retrieve ID from bootimages
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-ximages/add_adb_root/add_adb_root.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/images/add_adb_root/add_adb_root.py b/images/add_adb_root/add_adb_root.py
index f7e6b0b..bc9e553 100755
--- a/images/add_adb_root/add_adb_root.py
+++ b/images/add_adb_root/add_adb_root.py
@@ -64,6 +64,9 @@ def automatically_identify_file(path):
file_infos['cmdline'] = \
word.replace("`", "").replace("'", "")
+ if line.startswith('id:'):
+ file_infos['id'] = re.sub("^id: *", "", line)
+
return file_infos
def identify_file(path):