mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-02 08:12:54 +02:00
Move network initscripts to src/initscripts/networking
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update DNS forwarders for unbound
|
||||
exec /etc/init.d/unbound update-forwarders
|
||||
5
src/initscripts/networking/red.down/10-ipsec
Normal file
5
src/initscripts/networking/red.down/10-ipsec
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/local/bin/ipsecctrl D &
|
||||
|
||||
exit 0
|
||||
6
src/initscripts/networking/red.down/10-miniupnpd
Normal file
6
src/initscripts/networking/red.down/10-miniupnpd
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
[ -x /etc/init.d/miniupnpd ] && \
|
||||
/etc/init.d/miniupnpd stop &>/dev/null
|
||||
|
||||
exit 0
|
||||
6
src/initscripts/networking/red.down/10-ovpn
Normal file
6
src/initscripts/networking/red.down/10-ovpn
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/local/bin/openvpnctrl -k &
|
||||
/usr/local/bin/openvpnctrl -kn2n &
|
||||
|
||||
exit 0
|
||||
4
src/initscripts/networking/red.down/10-static-routes
Normal file
4
src/initscripts/networking/red.down/10-static-routes
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update the static routes.
|
||||
exec /etc/rc.d/init.d/static-routes start
|
||||
3
src/initscripts/networking/red.down/20-firewall
Normal file
3
src/initscripts/networking/red.down/20-firewall
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec /etc/rc.d/init.d/firewall down
|
||||
Reference in New Issue
Block a user