Skip to content

Commit

Permalink
Change lime-rc scripts dir to /etc/lime/rc.d
Browse files Browse the repository at this point in the history
Add script to execute firewall.user rules if firewall not enabled. Specially required for the ebtables anygw rule.

Signed-off-by: p4u <p4u@dabax.net>
  • Loading branch information
p4u committed Jul 21, 2016
1 parent 7b99ba8 commit dcc5d5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lime-system/files/etc/init.d/lime-rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# the file called "COPYING".

START=99
RCDIR=/etc/lime-rc.d
RCDIR=/etc/lime/rc.d

start() {
for s in $RCDIR/*; do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
[ ! -e /etc/rc.d/S??firewall ] && {
echo "$0: Firewall is not enabled. Executing firewall.user scripts."
sh /etc/firewall.user.d/*
}

0 comments on commit dcc5d5e

Please sign in to comment.