diff options
author | Leah Woods <info@minifree.org> | 2016-05-19 10:13:07 +0100 |
---|---|---|
committer | Leah Woods <info@minifree.org> | 2016-05-19 10:13:07 +0100 |
commit | 3afa15f89f998cdafaf86f949ea370943f1aaf84 (patch) | |
tree | 3e655c5d939294ab4400553fa03802ac557cdc2a /resources/scripts/helpers/build/roms/withgrub_helper | |
parent | ff00e9017d033530435a0eee00237d8778df791e (diff) | |
download | librebootfr-3afa15f89f998cdafaf86f949ea370943f1aaf84.tar.gz librebootfr-3afa15f89f998cdafaf86f949ea370943f1aaf84.zip |
build/roms/withgrub: Don't add timeout file to ROM if it already exists
Diffstat (limited to 'resources/scripts/helpers/build/roms/withgrub_helper')
-rwxr-xr-x | resources/scripts/helpers/build/roms/withgrub_helper | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper index 98814c92..5969e2f5 100755 --- a/resources/scripts/helpers/build/roms/withgrub_helper +++ b/resources/scripts/helpers/build/roms/withgrub_helper @@ -142,8 +142,10 @@ do ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" remove -n etc/ps2-keyboard-spinup fi - # Add keyboard startup delay timeout. Needed on some boards. 60s, just to play it safe. - ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 60000 -n etc/ps2-keyboard-spinup + if ! $(./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" print | grep -Fxq "etc\/ps2\-keyboard\-spinup"); then + # Add keyboard startup delay timeout. Needed on some boards. 60s, just to play it safe. + ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 60000 -n etc/ps2-keyboard-spinup + fi # .config no longer needed rm -f ".config" |