In case of missing recovery script in env, copy it from default one
authorPiotr Dymacz <pepe2k@gmail.com>
Sun, 9 Jul 2017 20:08:15 +0000 (22:08 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Sun, 9 Jul 2017 20:15:45 +0000 (22:15 +0200)
commitbf3269ac6e7743bef6a282be7c96ffde325c1726
tree953513d6cc5a7c1f1d7ee7f135117ffb125ff0e5
parent15151115467b6d72124f655931260811b893010b
In case of missing recovery script in env, copy it from default one

In case of update from some old version on device with correct env in
FLASH, recovery script (moved to env variable 'recovery' in 4f11127)
isn't available which results in missing 'button recovery mode'.

This fixes backward compatibility and ensures that the 'recovery'
variable is available in env - in case if it's not available in saved
env, value is copied from default env (the one embedded with image).

This fixes #154 and closes #131
u-boot/common/cmd_nvedit.c
u-boot/common/main.c
u-boot/include/common.h