7 # REQUIRE: FILESYSTEMS netif
14 start_precmd="pfsync_prestart"
15 start_cmd="pfsync_start"
16 stop_cmd="pfsync_stop"
21 # XXX Currently pfsync cannot be a module as it must register
22 # a network protocol in a static kernel table.
23 if ! kldstat -q -m pfsync; then
24 warn "pfsync(4) must be statically compiled in the kernel."
28 case "$pfsync_syncdev" in
30 warn "pfsync_syncdev is not set."
41 echo "Enabling pfsync."
42 if [ -n "${pfsync_syncpeer}" ]; then
43 _syncpeer="syncpeer ${pfsync_syncpeer}"
45 ifconfig pfsync0 $_syncpeer syncdev $pfsync_syncdev $pfsync_ifconfig up
50 echo "Disabling pfsync."
51 ifconfig pfsync0 -syncdev down