Remove odhcp6c.user hack
This commit is contained in:
parent
410733d423
commit
ded5925f83
@ -1,3 +0,0 @@
|
||||
for file in /lib/gluon/odhcp6c.d/*; do
|
||||
[ ! -x $file ] || $file
|
||||
done
|
@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$INTERFACE" = 'client' ] || exit 0
|
||||
|
||||
mkdir -p /var/gluon/mesh-batman-adv
|
||||
|
||||
for ns in $RDNSS $RA_DNS; do
|
||||
for domain in @mesh_domains@; do
|
||||
echo "server=/$domain/$ns"
|
||||
done
|
||||
done > /var/gluon/mesh-batman-adv/dnsmasq.conf.$$
|
||||
|
||||
if cmp -s /var/gluon/mesh-batman-adv/dnsmasq.conf.$$ /var/gluon/dnsmasq.d/mesh-batman-adv.conf; then
|
||||
rm /var/gluon/mesh-batman-adv/dnsmasq.conf.$$
|
||||
exit 0
|
||||
fi
|
||||
|
||||
lock /var/gluon/mesh-batman-adv/dnsmasq.conf.lock
|
||||
mv -f /var/gluon/mesh-batman-adv/dnsmasq.conf.$$ /var/gluon/dnsmasq.d/mesh-batman-adv.conf
|
||||
/etc/init.d/dnsmasq restart
|
||||
lock -u /var/gluon/mesh-batman-adv/dnsmasq.conf.lock
|
Loading…
Reference in New Issue
Block a user