From 185af5a60ca7fab3612d32f05d0e0c97776953c2 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 11 Apr 2016 11:45:44 +0200 Subject: [PATCH 192/257] etc/rc.d: Remove a couple of requirements that don't apply to ElectroBSD Obtained from: ElectroBSD --- etc/rc.d/NETWORKING | 4 ++-- etc/rc.d/bridge | 2 +- etc/rc.d/ipfw | 1 - etc/rc.d/ipnat | 29 ----------------------------- etc/rc.d/netif | 4 ++-- etc/rc.d/routing | 2 +- etc/rc.d/securelevel | 2 +- 7 files changed, 7 insertions(+), 37 deletions(-) delete mode 100755 etc/rc.d/ipnat diff --git a/etc/rc.d/NETWORKING b/etc/rc.d/NETWORKING index 9cdb5577ed2b..1bbea5aa40b9 100755 --- a/etc/rc.d/NETWORKING +++ b/etc/rc.d/NETWORKING @@ -4,8 +4,8 @@ # # PROVIDE: NETWORKING NETWORK -# REQUIRE: netif netwait netoptions routing ppp ipfw stf -# REQUIRE: defaultroute route6d resolv bridge +# REQUIRE: netif netwait netoptions routing ipfw stf +# REQUIRE: defaultroute routed route6d resolv bridge # REQUIRE: static_arp static_ndp # This is a dummy dependency, for services which require networking diff --git a/etc/rc.d/bridge b/etc/rc.d/bridge index 95e4eb9c2fac..8631fdab2b05 100755 --- a/etc/rc.d/bridge +++ b/etc/rc.d/bridge @@ -26,7 +26,7 @@ # # PROVIDE: bridge -# REQUIRE: netif ppp stf +# REQUIRE: netif stf # KEYWORD: nojail . /etc/rc.subr diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw index beccaffaf31b..7f9db1656de2 100755 --- a/etc/rc.d/ipfw +++ b/etc/rc.d/ipfw @@ -4,7 +4,6 @@ # # PROVIDE: ipfw -# REQUIRE: ppp # KEYWORD: nojailvnet . /etc/rc.subr diff --git a/etc/rc.d/ipnat b/etc/rc.d/ipnat deleted file mode 100755 index 6914bceaf466..000000000000 --- a/etc/rc.d/ipnat +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: ipnat -# REQUIRE: ipfilter -# KEYWORD: nojail - -. /etc/rc.subr - -name="ipnat" -desc="user interface to the NAT subsystem" -rcvar="ipnat_enable" -load_rc_config $name -start_cmd="ipnat_start" -stop_cmd="${ipnat_program} -F -C" -reload_cmd="${ipnat_program} -F -C -f ${ipnat_rules}" -extra_commands="reload" -required_files="${ipnat_rules}" -required_modules="ipl:ipfilter" - -ipnat_start() -{ - echo "Installing NAT rules." - ${ipnat_program} -CF -f ${ipnat_rules} ${ipnat_flags} -} - -run_rc_command "$1" diff --git a/etc/rc.d/netif b/etc/rc.d/netif index 6b52c50e7f4f..2458f0a863f5 100755 --- a/etc/rc.d/netif +++ b/etc/rc.d/netif @@ -26,8 +26,8 @@ # # PROVIDE: netif -# REQUIRE: FILESYSTEMS iovctl serial sppp sysctl -# REQUIRE: hostid ipfilter ipfs +# REQUIRE: FILESYSTEMS iovctl serial sysctl +# REQUIRE: hostid # KEYWORD: nojailvnet . /etc/rc.subr diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 2a57fa3b1182..7de71f12c9e1 100755 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -6,7 +6,7 @@ # # PROVIDE: routing -# REQUIRE: netif ppp stf +# REQUIRE: netif stf # KEYWORD: nojailvnet . /etc/rc.subr diff --git a/etc/rc.d/securelevel b/etc/rc.d/securelevel index c42a03534675..24dbf269df3f 100755 --- a/etc/rc.d/securelevel +++ b/etc/rc.d/securelevel @@ -4,7 +4,7 @@ # # PROVIDE: securelevel -# REQUIRE: adjkerntz ipfw ipfilter pf +# REQUIRE: adjkerntz ipfw pf . /etc/rc.subr -- 2.11.0