mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
08b4924401
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 40367
20 lines
415 B
Diff
20 lines
415 B
Diff
--- a/include/common.h
|
|
+++ b/include/common.h
|
|
@@ -122,10 +122,12 @@
|
|
}
|
|
|
|
if (strcmp("\n", line) != 0) {
|
|
- switch (rpmatch(line)) {
|
|
- case 0: ret = false; break;
|
|
- case 1: ret = true; break;
|
|
- case -1:
|
|
+ switch (line[0]) {
|
|
+ case 'N':
|
|
+ case 'n': ret = false; break;
|
|
+ case 'Y':
|
|
+ case 'y': ret = true; break;
|
|
+ default:
|
|
puts("unknown response; please try again");
|
|
continue;
|
|
}
|