Fix path to arp
This commit is contained in:
parent
3e6f2f1b5b
commit
7b640e17d4
@ -32,14 +32,14 @@ subnet {{ batman_ipv4 | ipaddr('network') }} netmask {{ batman_ipv4 | ipaddr('ne
|
|||||||
on commit {
|
on commit {
|
||||||
set clip = binary-to-ascii(10, 8, ".", leased-address);
|
set clip = binary-to-ascii(10, 8, ".", leased-address);
|
||||||
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
|
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 {
|
on release {
|
||||||
set clip = binary-to-ascii(10, 8, ".", leased-address);
|
set clip = binary-to-ascii(10, 8, ".", leased-address);
|
||||||
execute("/sbin/arp", "-d", clip);
|
execute("/usr/sbin/arp", "-d", clip);
|
||||||
}
|
}
|
||||||
on expiry {
|
on expiry {
|
||||||
set clip = binary-to-ascii(10, 8, ".", leased-address);
|
set clip = binary-to-ascii(10, 8, ".", leased-address);
|
||||||
execute("/sbin/arp", "-d", clip);
|
execute("/usr/sbin/arp", "-d", clip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user