summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/vyatta-cfg-system.postinst.in1
-rw-r--r--templates/interfaces/l2tpv3/node.def4
2 files changed, 3 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 37c19275..8888aa60 100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -11,6 +11,7 @@ for init in ntp ssh snmpd openhpid logd \
ipvsadm dnsmasq ddclient radvd hostapd conntrackd
do
update-rc.d -f ${init} remove >/dev/null
+ systemctl disable ${init} >/dev/null
done
# remove extra call to clock setup only need one. this speeds up boot
diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def
index 4fce9536..03c677ad 100644
--- a/templates/interfaces/l2tpv3/node.def
+++ b/templates/interfaces/l2tpv3/node.def
@@ -48,9 +48,9 @@ create:
delete:
ip link set $VAR(@) down
- if [ -n "$VAR(./tunnel-id@/)" ] && [ -n "$VAR(./session-id@/)" ] ; then
+ if [ -n "$VAR(./tunnel-id/@)" ] && [ -n "$VAR(./session-id/@)" ] ; then
ip l2tp del session $VAR(./tunnel-id/@) session_id $VAR(./session-id/@)
fi
- if [ -n "$VAR(./tunnel-id@/)" ] ; then
+ if [ -n "$VAR(./tunnel-id/@)" ] ; then
ip l2tp del tunnel tunnel_id $VAR(./tunnel-id/@)
fi