Update 7906_7911 firmware. Move config.json to tools dir. Update generate.py

This commit is contained in:
Diederik de Groot
2018-03-02 20:00:52 +01:00
parent 0cf5f9d005
commit d2df152eef
15 changed files with 2 additions and 2 deletions

26
tools/config.json Normal file
View File

@@ -0,0 +1,26 @@
{
"basedir": "/",
"os": "debian",
"pbx": {
"ip": "10.1.2.3",
"port": 2000
},
"generate_config": [
"dhcpd",
"nginx",
"apache",
"tftpd-hpa",
"inetd.d",
"xinetd.d",
"init.d"
],
"generate_xml": [
"ringlist"
],
"install": [
"nginx",
"tftpd-hpa",
"init.d",
"tftpboot"
]
}

View File

@@ -4,7 +4,7 @@ import json
import os
import hachoir_regex
with open('config.json') as f:
with open('tools/config.json') as f:
config = json.load(f)
def generate_regex(subdir):