Date:2010-05-02 02:45:51 (7 years 6 months ago)
Author:jow
Commit:e49cd53e159a2481612d6040e68657ce20750c3b
Message:[backfire] merge r21288

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21289 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/nvram/Makefile (1 diff)
package/nvram/src/cli.c (1 diff)

Change Details

package/nvram/Makefile
88include $(TOPDIR)/rules.mk
99
1010PKG_NAME:=nvram
11PKG_RELEASE:=5
11PKG_RELEASE:=6
1212
1313PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
1414
package/nvram/src/cli.c
165165                stat = do_info(nvram);
166166                done++;
167167            }
168            else if( !strcmp(argv[i], "get") && ++i < argc )
168            else if( !strcmp(argv[i], "get") || !strcmp(argv[i], "unset") || !strcmp(argv[i], "set") )
169169            {
170                stat = do_get(nvram, argv[i]);
171                done++;
172            }
173            else if( !strcmp(argv[i], "unset") && ++i < argc )
174            {
175                stat = do_unset(nvram, argv[i]);
176                done++;
177            }
178            else if( !strcmp(argv[i], "set") && ++i < argc )
179            {
180                stat = do_set(nvram, argv[i]);
181                done++;
170                if( (i+1) < argc )
171                {
172                    switch(argv[i++][0])
173                    {
174                        case 'g':
175                            stat = do_get(nvram, argv[i]);
176                            break;
177
178                        case 'u':
179                            stat = do_unset(nvram, argv[i]);
180                            break;
181
182                        case 's':
183                            stat = do_set(nvram, argv[i]);
184                            break;
185                    }
186                    done++;
187                }
188                else
189                {
190                    fprintf(stderr, "Command '%s' requires an argument!\n", argv[i]);
191                    done = 0;
192                    break;
193                }
182194            }
183195            else if( !strcmp(argv[i], "commit") )
184196            {

Archive Download the corresponding diff file



interactive