*BSD News Article 43753


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.pitt.edu!godot.cc.duq.edu!ddsw1!not-for-mail
From: chilton@MCS.COM (Christopher Hilton)
Newsgroups: comp.unix.bsd.freebsd.misc,mcs.general
Subject: slattach -u configure.script
Date: 8 May 1995 15:51:29 -0500
Organization: /usr/lib/news/organi[sz]ation
Lines: 41
Message-ID: <3om08h$c97@Mars.mcs.com>
NNTP-Posting-Host: mars.mcs.com

I'm using FreeBSD 2.0-Release on my main machine at home. I'm trying
to set up a script so that my girlfriend can put up the interface to
my IP provider with one command and I'm having some troubl in my
script determining which interface I need to configure with ifconfig.

I have two slip interfaces that I need to set up. The first one is a
link over my modem to my IP provider. My second one is a local link to
my laptop that I start out with the sliplogin suite. I'm using
slattach and ifconfig to put up the first connection. Sliplogin calls
a script to to configure the interface when my laptop's slip user logs in.

The Sliplogin suite has a configuration option which specifies the
interface at login time so that side isn't a problem but if I run
slattach like this:

     $ slattach -a -h -u configure.script -s 115200 /dev/cuaa1

The man page says that slattach should call the configuration script
with the name of the interface when the interface changes like this:

     configure.script old_unit new_unit

It seems as though this call does not get made when the interface
first comes up. This is a problem because my script has no way to
figure out which slip interface it's using to connect to my
provider. I can fix this for myself from the source code but doesn't
putting up the interface count as changing it? 

C.



-- 
Christopher Sean Hilton	                       E-mail: chilton@mcs.com
----------------------------------------------------------------------
ICBM address:           | "Thus it is said if you know them and know 
  42 07 39 N/87 49 44 W | yourself, your victory will not be imperiled.
For PGP key finger:     | If you know Heaven and you know Earth, your 
     chilton@mcs.com    | victory will be complete." - Sun Tsu
----------------------------------------------------------------------