diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 21:19:38 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 21:40:40 -0400 |
commit | edbdefa09ab9dfe82f647b48493db91d79c094dd (patch) | |
tree | b392575d39a7dc0941c0c6cc143dca8f2b6cfe85 /tools | |
parent | 4cdb28c167c028e89be670f54a0108af3416cd1f (diff) |
hosted: Drop a bootloader version string in /etc, and report it in debug menu
Change-Id: I4d72d7800dbff56619898b6bc9d0f81a6c561598
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/hiby_patcher.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/hiby_patcher.pl b/tools/hiby_patcher.pl index b03f2343dd..cff029e03b 100755 --- a/tools/hiby_patcher.pl +++ b/tools/hiby_patcher.pl @@ -135,6 +135,13 @@ system(@sysargs); my $rbbasename = basename($rbbname); #### Mangle RootFS + +# Save version into rootfs +my $version = `cat rockbox-info.txt | grep Version | cut -f2 -d' '`; +open FILE, ">$rootfsdir/etc/rockbox-bl-info.txt" || die ("can't write version txt"); +print FILE $version; +close FILE; + if ($hiby) { my $bootloader_sh = "#!/bin/sh |