Initial commit for creating core dns image

This commit is contained in:
2023-01-26 06:27:17 +00:00
parent 7db856db57
commit 061591808d
6 changed files with 116 additions and 0 deletions

14
entrypoint.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
dnsmasq -k &
FILE="/etc/dnsmasq.d/hosts.local"
LAST=`md5sum "$FILE"`
while true; do
sleep 0.1
NEW=`md5sum "$FILE"`
if [ "$NEW" != "$LAST" ]; then
killall -s SIGHUP dnsmasq
LAST="$NEW"
fi
done