Initial commit for creating core dns image
This commit is contained in:
14
entrypoint.sh
Executable file
14
entrypoint.sh
Executable 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
|
Reference in New Issue
Block a user