diff options
Diffstat (limited to 'templates/system/conntrack/modules/pptp/disable/node.def')
-rw-r--r-- | templates/system/conntrack/modules/pptp/disable/node.def | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/system/conntrack/modules/pptp/disable/node.def b/templates/system/conntrack/modules/pptp/disable/node.def index 00a2071e..4ffd980c 100644 --- a/templates/system/conntrack/modules/pptp/disable/node.def +++ b/templates/system/conntrack/modules/pptp/disable/node.def @@ -1,7 +1,13 @@ help: Disable PPTP connection tracking -create: sudo rmmod nf_nat_pptp - sudo rmmod nf_conntrack_pptp +create: cli-shell-api exists system conntrack modules gre disable + if [ $? == 0 ]; then + # Do nothing, this case is handled in GRE module templates + :; + else + sudo rmmod nf_nat_pptp + sudo rmmod nf_conntrack_pptp + fi # PPTP shouldn't be enabled when GRE is disabled because PPTP depends on it delete: cli-shell-api exists system conntrack modules gre disable @@ -11,4 +17,4 @@ delete: cli-shell-api exists system conntrack modules gre disable else sudo modprobe nf_conntrack_pptp sudo modprobe nf_nat_pptp - fi
\ No newline at end of file + fi |