From: BangLang Huang Date: Fri, 24 Feb 2017 02:58:09 +0000 (+0800) Subject: nvram: add help message for nvram magic not found X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b8830933512e6c9e0c866c5f8977f74acfecf89;p=librecmc%2Flibrecmc.git nvram: add help message for nvram magic not found The program would failed if nvram magic not found in specific partition. Signed-off-by: BangLang Huang (cherry picked from commit 69da83d9f12e4e48b546fc3fc3ff555034959211) --- diff --git a/package/utils/nvram/src/cli.c b/package/utils/nvram/src/cli.c index 538bdce648..224a2b7e26 100644 --- a/package/utils/nvram/src/cli.c +++ b/package/utils/nvram/src/cli.c @@ -240,6 +240,7 @@ int main( int argc, const char *argv[] ) " - Insufficient permissions to open mtd device\n" " - Insufficient memory to complete operation\n" " - Memory mapping failed or not supported\n" + " - Nvram magic not found in specific nvram partition\n" ); stat = 1;