From 1c6ea07e995f22949205c15b884287fc174f0998 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 8 Jul 2020 20:30:59 +0200 Subject: pppoe: T2585: use cleaner template expression --- data/templates/pppoe/ip-down.script.tmpl | 2 +- data/templates/pppoe/ip-up.script.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'data/templates/pppoe') diff --git a/data/templates/pppoe/ip-down.script.tmpl b/data/templates/pppoe/ip-down.script.tmpl index ac14d4b07..7b1952a80 100644 --- a/data/templates/pppoe/ip-down.script.tmpl +++ b/data/templates/pppoe/ip-down.script.tmpl @@ -10,7 +10,7 @@ fi DIALER_PID=$(cat /var/run/{{ ifname }}.pid) logger -t pppd[$DIALER_PID] "executing $0" -{% if not connect_on_demand %} +{% if connect_on_demand is not defined %} # See https://phabricator.vyos.net/T2248. Determine if we are enslaved to a # VRF, this is needed to properly insert the default route. VRF_NAME="" diff --git a/data/templates/pppoe/ip-up.script.tmpl b/data/templates/pppoe/ip-up.script.tmpl index 8009b2e6f..568e21c4e 100644 --- a/data/templates/pppoe/ip-up.script.tmpl +++ b/data/templates/pppoe/ip-up.script.tmpl @@ -6,7 +6,7 @@ if [ "$6" != "{{ ifname }}" ]; then exit fi -{% if not connect_on_demand %} +{% if connect_on_demand is not defined %} # add some info to syslog DIALER_PID=$(cat /var/run/{{ ifname }}.pid) logger -t pppd[$DIALER_PID] "executing $0" -- cgit v1.2.3