Fix path to arp

This commit is contained in:
Markus 2017-04-05 22:01:37 +02:00
parent 3e6f2f1b5b
commit 7b640e17d4

View File

@ -32,14 +32,14 @@ subnet {{ batman_ipv4 | ipaddr('network') }} netmask {{ batman_ipv4 | ipaddr('ne
on commit {
set clip = binary-to-ascii(10, 8, ".", leased-address);
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
execute("/sbin/arp", "-s", clip, clhw);
execute("/usr/sbin/arp", "-s", clip, clhw);
}
on release {
set clip = binary-to-ascii(10, 8, ".", leased-address);
execute("/sbin/arp", "-d", clip);
execute("/usr/sbin/arp", "-d", clip);
}
on expiry {
set clip = binary-to-ascii(10, 8, ".", leased-address);
execute("/sbin/arp", "-d", clip);
execute("/usr/sbin/arp", "-d", clip);
}
}