Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 73115 - Have mii-tool call a script on status changes
Have mii-tool call a script on status changes
Product: Red Hat Linux
Classification: Retired
Component: net-tools (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Ben Levenson
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2002-08-30 17:42 EDT by Jason Tibbitts
Modified: 2015-03-04 20:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-30 17:42:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to mii-tool (2.56 KB, patch)
2002-08-30 17:42 EDT, Jason Tibbitts
no flags Details | Diff

  None (edit)
Description Jason Tibbitts 2002-08-30 17:42:02 EDT
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 17:42:47 EDT
Created attachment 74024 [details]
Patch to mii-tool
Comment 2 Phil Knirsch 2002-09-02 11:17:30 EDT
Will check to include sometime later.

Read ya, Pil

Note You need to log in before you can comment on or make changes to this bug.