summaryrefslogtreecommitdiff
path: root/templates/system/conntrack/modules/pptp/disable/node.def
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2011-10-31 23:03:11 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2011-10-31 23:03:11 +0700
commitad00f08f0a2caeda317fa15fef43ae677681c1f5 (patch)
tree4bf133459a36b7061fed1468abcca9178260090b /templates/system/conntrack/modules/pptp/disable/node.def
parentaeaf3d57035edb53d6b829c3810e42b44dcf845f (diff)
downloadvyatta-cfg-system-ad00f08f0a2caeda317fa15fef43ae677681c1f5.tar.gz
vyatta-cfg-system-ad00f08f0a2caeda317fa15fef43ae677681c1f5.zip
Terrible workaround for depencency between PPTP and GRE modules.
Diffstat (limited to 'templates/system/conntrack/modules/pptp/disable/node.def')
-rw-r--r--templates/system/conntrack/modules/pptp/disable/node.def12
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