Bug 73115

Summary: Have mii-tool call a script on status changes
Product: [Retired] Red Hat Linux Reporter: Jason Tibbitts <tibbs>
Component: net-toolsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED DEFERRED QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 7.3CC: rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-30 21:42:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
Patch to mii-tool none

Description Jason Tibbitts 2002-08-30 21:42:02 UTC
mii-tool has the capability to watch a network interface for status changes.  It
is a simple enhancement to make it do something useful when it detects a status
change.  I will attach a short patch which adds a --script option; mii-tools
will call this script with the name of the changing interface and the string
"up" or "down" as arguments.

One such useful script is:

/sbin/if$2 $1

This allows a laptop user to bring the network up just by plugging the cable in.
 Perhaps there is another way to do this, but I couldn't find it and this hack
was easy enough.

Beware, though, that my C is rusty, I haven't included a manpage patch, and this
is just a hack.  If this would be useful to others or might be included, I will
happily clean it up.

Comment 1 Jason Tibbitts 2002-08-30 21:42:47 UTC
Created attachment 74024 [details]
Patch to mii-tool

Comment 2 Phil Knirsch 2002-09-02 15:17:30 UTC
Will check to include sometime later.

Read ya, Pil