mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 22:53:56 +08:00
update 2026-10-31 18:07:25
This commit is contained in:
1 parent
6ce64f7ba2
commit
04b58d28a1
70 files changed
+209
-211
No files matched your search
@@ -120,9 +120,9 @@ function copy_instance(var)
|
||||
local TMP_DNSMASQ_PATH = var["TMP_DNSMASQ_PATH"]
|
||||
local conf_lines = {}
|
||||
local DEFAULT_DNSMASQ_CFGID = sys.exec("echo -n $(uci -q show dhcp.@dnsmasq[0] | awk 'NR==1 {split($0, conf, /[.=]/); print conf[2]}')")
|
||||
|
||||
|
||||
local conf_file = "/var/etc/dnsmasq.conf." .. DEFAULT_DNSMASQ_CFGID
|
||||
|
||||
|
||||
local retry = 5
|
||||
while not fs.access(conf_file) and retry > 0 do
|
||||
api.nixio.nanosleep(1, 0)
|
||||
|
||||
Reference in new issue
Block a user