dontask.patch
来自「Uboot常用的移植patches, 方便定制移植到s3c2440」· PATCH 代码 · 共 23 行
PATCH
23 行
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;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?