From: Stefan Schantl Date: Tue, 2 Jul 2013 05:38:04 +0000 (+0200) Subject: pppoe: Fix exception when bringing down the zone X-Git-Tag: 007~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd29545a7b355a077c6b354dd370d938c83d172;p=network.git pppoe: Fix exception when bringing down the zone The port setting was changed and hook_down() did not reflect these changes accordingly. Signed-off-by: Stefan Schantl --- diff --git a/src/hooks/zones/pppoe b/src/hooks/zones/pppoe index b4bb6601..790822a8 100644 --- a/src/hooks/zones/pppoe +++ b/src/hooks/zones/pppoe @@ -138,8 +138,11 @@ hook_down() { pppd_stop ${zone} # Bring down the port. - log DEBUG "Bringing down port '${PORT}'." - port_down ${PORT} + local port=$(__hook_get_port "${zone}") + if isset port; then + log DEBUG "Bringing down port '${port}'" + port_down "${port}" + fi exit ${EXIT_OK} }