TBH, I have never developed with python, but confconsoly.py seems as hard as any other uncommented script to understand :-P.
For example, if I understood correctly, to add another sub-menu in "advanced menu", it should be enough to:
1. add another line which appends a new item in "_get_advmenu" (e.g. items.append(("NewSubMenu", "NewSubMenu Brief Description"));
2. add a new function "_get_ifconfNEW(self, ifname)" which can be based on "_get_ifconftext" as template;
3. add "self._get_ifconfNew(self.ifname)" in "ifconf" (e.g.
TBH, I have never developed
TBH, I have never developed with python, but confconsoly.py seems as hard as any other uncommented script to understand :-P.
For example, if I understood correctly, to add another sub-menu in "advanced menu", it should be enough to:
1. add another line which appends a new item in "_get_advmenu" (e.g. items.append(("NewSubMenu", "NewSubMenu Brief Description"));
2. add a new function "_get_ifconfNEW(self, ifname)" which can be based on "_get_ifconftext" as template;
3. add "self._get_ifconfNew(self.ifname)" in "ifconf" (e.g.
).
Am I right?
Instead, if I'd like to use "services.txt" to add my new features, I should edit services.txt in something like:
Am I right?
Howerever, is it right my guess that $newVariable should be an enviroment variable of linux? Otherwise, how do I define such $newVariable?
It is a lovely news that you are currently tweaking confconsole! ;-)
P.S. Thanks for removing the spammer, and, of cource, for your help!