diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-12-28 13:10:28 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-12-28 13:10:28 +0000 |
commit | be3e650d031916b132b4cef9d19e7844cca3440b (patch) | |
tree | 96dea5f2866a9c43bee966b9d01753467f19a9a3 /packages/u-boot/u-boot-mkimage-openmoko-native/dontask.patch | |
parent | 518fac47b16e548ace1e23d1bc6f4a38b44670bb (diff) |
rename uboot directory for more consistency
Diffstat (limited to 'packages/u-boot/u-boot-mkimage-openmoko-native/dontask.patch')
-rw-r--r-- | packages/u-boot/u-boot-mkimage-openmoko-native/dontask.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/u-boot/u-boot-mkimage-openmoko-native/dontask.patch b/packages/u-boot/u-boot-mkimage-openmoko-native/dontask.patch new file mode 100644 index 0000000000..23d4b13626 --- /dev/null +++ b/packages/u-boot/u-boot-mkimage-openmoko-native/dontask.patch @@ -0,0 +1,22 @@ +common/cmd_nand.c (yes): if the environment variable "dontask" is set to "y" or + "Y", non-interactively assume the answer was "yes". In all other cases, ask. + +- Werner Almesberger <werner@openmoko.org> + +Index: u-boot/common/cmd_nand.c +=================================================================== +--- u-boot.orig/common/cmd_nand.c ++++ u-boot/common/cmd_nand.c +@@ -165,8 +165,12 @@ out: + + static int yes(void) + { ++ char *s; + char c; + ++ s = getenv("dontask"); ++ if (s && (s[0] =='y' || s[0] == 'Y') && !s[1]) ++ return 1; + c = getc(); + if (c != 'y' && c != 'Y') + return 0; |