/* DESC: This script can be used to set a configuration parameter. * Copyright (C) 2012 NetModule AG, Switzerland */ void usage() { printf("usage: write-config.are <config-key> <config-value>\n"); exit(1); } if (argc < 3) { usage(); } msg = sprintf("%s=%s", argv[1], argv[2]); ret = nb_config_set(msg); if(ret > 0) { printf("Successfully set %s=%s\n", argv[1], argv[2]); } else { printf("Unable to write config\n"); } exit(0);
Arguments for this Script could be 1. modem.x.status 2. 1, to enable wwan modem. (Space between arguments)