Deleted Added
full compact
ipfs (230099) ipfs (255450)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/ipfs 230099 2012-01-14 02:18:41Z dougb $
3# $FreeBSD: head/etc/rc.d/ipfs 255450 2013-09-10 13:48:33Z cy $
4#
5
6# PROVIDE: ipfs
7# REQUIRE: ipnat
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11

--- 6 unchanged lines hidden (view full) ---

18ipfs_prestart()
19{
20 # Do not continue if either ipnat or ipfilter is not enabled or
21 # if the ipfilter module is not loaded.
22 #
23 if ! checkyesno ipfilter_enable -o ! checkyesno ipnat_enable ; then
24 err 1 "${name} requires either ipfilter or ipnat enabled"
25 fi
4#
5
6# PROVIDE: ipfs
7# REQUIRE: ipnat
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11

--- 6 unchanged lines hidden (view full) ---

18ipfs_prestart()
19{
20 # Do not continue if either ipnat or ipfilter is not enabled or
21 # if the ipfilter module is not loaded.
22 #
23 if ! checkyesno ipfilter_enable -o ! checkyesno ipnat_enable ; then
24 err 1 "${name} requires either ipfilter or ipnat enabled"
25 fi
26 if ! sysctl net.inet.ipf.fr_pass >/dev/null 2>&1; then
26 if ! ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes' >/dev/null 2>&1; then
27 err 1 "ipfilter module is not loaded"
28 fi
29 return 0
30}
31
32ipfs_start()
33{
34 if [ -r /var/db/ipf/ipstate.ipf -a -r /var/db/ipf/ipnat.ipf ]; then

--- 17 unchanged lines hidden ---
27 err 1 "ipfilter module is not loaded"
28 fi
29 return 0
30}
31
32ipfs_start()
33{
34 if [ -r /var/db/ipf/ipstate.ipf -a -r /var/db/ipf/ipnat.ipf ]; then

--- 17 unchanged lines hidden ---