mirror of
https://github.com/openwrt/packages.git
synced 2025-07-12 03:58:57 +00:00
arp-whisper listens to ARP requests on a network interface and responds to them based on a list of IP-MAC address mappings defined in a configuration file Signed-off-by: Facundo Acevedo <facevedo@disroot.org>
15 lines
290 B
Bash
15 lines
290 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
START=60
|
|
USE_PROCD=1
|
|
PROG=/usr/sbin/arp-whisper
|
|
CONF_FILE=/etc/arp-whisper/arp-whisper
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command "$PROG" "$CONF_FILE"
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_close_instance
|
|
}
|