Hi folks,
as already written in the forum, I have ported my IPTraffic addon for IPFire.
A few questions are still open. I hope you will help me.
The cronjob is okay. Now I wonder if I should create the bash-installer as perl-script.
I can't figure out the git-links. I see the code, but don't understand how it can help me.
How to insert the code for the menu where? How the language file should look like is clear, but how do I get it inserted in the system?
Thanks in advance for your help. Frank
Hello Frank,
On 6 Dec 2020, at 14:57, Frank Mainz frank@cybermainzel.de wrote:
Hi folks,
as already written in the forum, I have ported my IPTraffic addon for IPFire.
You have come to the right place here. The forum is mainly a support forum.
A few questions are still open. I hope you will help me.
Yes, absolutely.
But first from me: What is the IPTraffic add-on?
The cronjob is okay. Now I wonder if I should create the bash-installer as perl-script.
Why? I would prefer shell because we have a small library that we load for common functionality like starting a service, etc.
I can't figure out the git-links. I see the code, but don't understand how it can help me.
Please explain the problem you are trying to solve and I hope I can help to come up with a solution.
How to insert the code for the menu where?
There are files in config/menu. Have a look at the files beginning with EX-. Those are add-ons.
How the language file should look like is clear, but how do I get it inserted in the system?
Have a look at lfs/squid-accounting. That script installs files from src/squid-accounting to /var/ipfire/addon-lang.
You can do the same and run /usr/local/bin/update-lang-cache in the install.sh script.
Thanks in advance for your help. Frank
Let me know if this has helped.
Best, -Michael