diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-10-31 23:03:11 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-10-31 23:03:11 +0700 |
commit | ad00f08f0a2caeda317fa15fef43ae677681c1f5 (patch) | |
tree | 4bf133459a36b7061fed1468abcca9178260090b /templates/system/conntrack/modules/pptp/disable | |
parent | aeaf3d57035edb53d6b829c3810e42b44dcf845f (diff) | |
download | vyatta-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')
-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 |