Remove odhcp6c.user hack

This commit is contained in:
Matthias Schiffer 2014-01-25 01:54:19 +01:00
parent 410733d423
commit ded5925f83
3 changed files with 0 additions and 24 deletions

View File

@ -1,3 +0,0 @@
for file in /lib/gluon/odhcp6c.d/*; do
[ ! -x $file ] || $file
done

View File

@ -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