#!/bin/sh #---------------------------------------------------------------------------- # add-default-route - add default route # # called by imond # # Creation: 2000-11-14 fm # Last Update: $Id$ # # Copyright (c) 2000-@@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. #---------------------------------------------------------------------------- device=${1} if [ "${device}" = "pppoe" ] then device='ppp0' fi exec /usr/sbin/ip route add default dev ${device} # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------