#!/bin/ksh
# Copyright (c) 2026 Wireless Connect Ltd. <https://wirelessconnect.ie>
# SPDX-License-Identifier: PolyForm-Small-Business-1.0.0

#
# ogmaprotect-arpd — static ARP table daemon (arp -s/-d/-an)
#
# Start order: arpd reapplies managed static-ARP entries to the kernel at
# startup, so it should start AFTER ogmaprotect_netd has applied interface
# addresses (entries whose interface is not yet up are deferred and retried).

daemon="/usr/local/sbin/ogmaprotect-arpd"
# Daemons run in foreground; rc.subr must background them for rcctl.
rc_bg=YES

. /etc/rc.d/rc.subr

rc_cmd $1
