/* * vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab: * * curcfg_tool - Utility to alter curcfg.xml on Huawei B593 u-12 * * This code is derived from software contributed to Berkeley by * * Copyright (c) 2014 Jari Turkia * Licensed under GPLv2, see file gpl-2.0.txt. */ #include #include #include #include #include #include #include #define VERSION "0.3" #define CONFIG_BUFFER_SIZE 65536 enum { CHANGE_GUI = 1, CHANGE_SSH = 2, IPTABLES = 4, RC_LOCAL = 8, NTP = 16 } options; /** * */ void usage(const char* errorText) { if (errorText) { printf(errorText); } printf( "Usage:\n" "-V - Print version information\n" "-cw - set password\n" "-cs - set password\n" "-rc