Update 7906_7911 firmware. Move config.json to tools dir. Update generate.py
This commit is contained in:
26
tools/config.json
Normal file
26
tools/config.json
Normal 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"
|
||||
]
|
||||
}
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user