Making PirateBox more modular, better startup tool February 14, 2015 08:30AM |
Admin Registered: 13 years ago Posts: 4,680 |
* conf (folder) |---- piratebox.conf ; Contains path variables |-----* modules_conf (folder) (Contains configuration parts) | |---- hostname.conf Contains the hostname and maybe hostname relevant sutff | |---- network.conf Contains IP Addresses |-----* lighttpd (folder) |-*- conf.d (folder) Contains small snippets of the lighttpd.conf, that you can easily enable, disable or extend the configuration only with (re)placing a new file here.
/opt/piratebox/bin/piratebox_modules.sh enable droopy /opt/piratebox/bin/piratebox_modules.sh disable droopyThese states can be asked at the piratebox_modules.sh script:
/opt/piratebox/bin/piratebox_modules.sh enabled droopyTo create and make a module available, I created an example module, which can be used in the following steps:
- Copy example to a new file "my_new_module" - Edit the file - find and replace the word "example" with "my_new_module" - Fill out the start and stop section, and choose a point where the module should be started. - lay down custom configuration in conf/modules_confLater enable it with the commands above.
Re: Making PirateBox more modular, better startup tool February 14, 2015 08:30AM |
Admin Registered: 13 years ago Posts: 4,680 |
01 - 09 USER ONLY 10 ----------- prepare 11 Do cleanups 12 Generate some config files 12 do JSON generation 12 shoutbox init (permissions and text) 13 distribute constom dirslisting 20 ------------ Network configuration 21 do IW 22 DO Probe interface CRUCIAl=YES 23 Do hostap 24 bridge-Creation CRUCIAl=YES 24 DO ifconfig - v4 CRUCIAl=YES 25 DO ifconfig - v6 CRUCIAl=YES 29 DO bridge-ADD 30 -------- Client Network-Config Serving Part 31 dnsmasq 32 radvd 40-49 ------------ USER ONLY 50 ------ WWW - Content Serving 51 DROOPY 52 Lighttpd 53 global chat server (broadcast shoutbox) 70 ---- OTher services 71 IRC Server 72 avahi-to-sdns 80-99 -- USER ONLY
00 - 09 USER ONLY 10 ------ Disable new connections 11 hostapd 12 dnsmasq 13 radvd 20 ----- 21 global shoutbox 21 avahi-to-sdns 22 lighttpd 23 droopy 30 - 39 --- USER ONLY 40 ---- 41 irc_server 70 --- rest of networking 71 ifconfig down 72 bridge client remove 73 bridge delete 74 iw remove 80-99 -- USER ONLY
Re: Making PirateBox more modular, better startup tool February 14, 2015 08:36AM |
Admin Registered: 13 years ago Posts: 4,680 |
That should reduce the technical configuration. I'm still working on a good concept or a function library, that will help to identify that. BUT there will be always the option to overwrite the decision of the function with setting a configuration value!Quote
When Bridge-Add (add AP-wifi to an existing bridge) is active and dnsmasq is running too, dnsmasq should operate on the bridge interface and not the AP-wifi interface
Re: Making PirateBox more modular, better startup tool February 14, 2015 08:44AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Making PirateBox more modular, better startup tool February 14, 2015 08:48AM |
Admin Registered: 13 years ago Posts: 4,680 |
Me
Re: Making PirateBox more modular, better startup tool April 02, 2015 08:55AM |
Re: Making PirateBox more modular, better startup tool July 14, 2015 02:33PM |
Registered: 8 years ago Posts: 5 |
Re: Making PirateBox more modular, better startup tool July 23, 2015 07:41PM |
Admin Registered: 13 years ago Posts: 4,680 |