#!/bin/bash # # Author: deelkar@gmx.de # # Script: /usr/local/bin/dial # # Version: 7.3.10 # # Requires: +dual--7.3.1+, yi.bs, +getip--7.3.1+, bash # # Public: yes # Copyright (C) 2002 "Dirk-Lueder Kreie" # # 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. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for # more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the # # Free Software Foundation, Inc. # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 # USA. starttime=`date` /sbin/isdnctrl dial ippp0 echo -e "Connect at $starttime" >> /var/log/connections.log sleep 5 echo "" >> /var/log/connections.log /sbin/ifconfig ippp0|grep inet|sed s/" "// >> /var/log/connections.log echo -ne "$starttime " /sbin/isdnctrl status ippp0 /usr/local/bin/ip-update --connect test -e /var/sysflags/channelbundling && /usr/local/bin/dual
Make your own free website on Tripod.com