#!/bin/sh -x # $Id: plip,v 1.8 1998/04/20 16:13:25 czyborra Exp $ case $USER in root) ;; *) echo No, you must be superuser to run this! exit 1 esac case $1 in off) route del default route del medvic ifconfig plip0 down ifconfig plip1 down rmmod plip ;; *) case $1 in 1*) laplink=$1;; **) laplink=192.168.20.163;; esac insmod plip ifconfig plip1 $laplink pointopoint medvic up || ifconfig plip0 $laplink pointopoint medvic up && route add medvic && route add default gw medvic && ping -c 1 medvic && /etc/ppp/ip-up esac ifconfig route