#!/usr/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ip-down.portfw - remove all forwardings # # Creation: 2002-11-24 fm # Last Update: $Id$ # # Copyright (c) 2002-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /etc/config.d/routing is_default_route=yes rem_pre='/run/portfw.rem.' # is a default-route-interface going down & config-file there? if [ "${is_default_route}" = "yes" -a -f ${rem_pre}default ] then . ${rem_pre}default rm ${rem_pre}default fi if [ -f ${rem_pre}${interface} ] # is there a remove-file for the interface going down? then . ${rem_pre}${interface} rm ${rem_pre}${interface} fi