Reorder directory structure

/tftpboot -> /data
/tftpboot/index.php -> /srv/web/index.php
/tftp_provisioner.php -> /srv/tftp/tftp_provisioner.php

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-03-16 08:06:10 +01:00
parent e3cea2d17c
commit 3d213e6571
2284 changed files with 23 additions and 275 deletions

10
data/firmware/mkregex.py Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python
from hachoir_regex import parse
from os import listdir,walk,path
from os.path import basename,join,isdir
rootdir = ".";
for subdir in next(walk(rootdir))[1]:
paths = listdir(subdir)
as_regex = [parse(path) for path in paths]
print "^{}$ /firmware/{}/\\1".format(reduce(lambda x, y: x | y, as_regex), basename(subdir))