* Patch to allow local net startup.
@ 2004-08-01 20:23 Sean Reifschneider
0 siblings, 0 replies; only message in thread
From: Sean Reifschneider @ 2004-08-01 20:23 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
Attached is a patch which looks for "/etc/hotplug/net-local", and uses
that in preference to "ifup" or other distro-specific configs to bring
the interface up. I added this to a local copy because it seems to be
the only way I can get my own script to run for bringing up a hotplug
wireless interface. Unfortunately, just listing some iwconfig arguments
isn't really that useful for the mobile user, I have a script that
configures itself differently depending on where it detects I am.
Some sort of mechanism for allowing users to wedge into the
initialization is really needed.
Sean
--
Resistance isn't futile. It's voltage over amperage.
Sean Reifschneider, Member of Technical Staff <jafo@tummy.com>
tummy.com, ltd. - Linux Consulting since 1995. Qmail, Python, SysAdmin
Back off man. I'm a scientist. http://HackingSociety.org/
[-- Attachment #2: hotplug-netlocal.patch --]
[-- Type: text/plain, Size: 493 bytes --]
--- admin/etc/hotplug/net.agent.old 2004-08-01 14:11:35.000000000 -0600
+++ admin/etc/hotplug/net.agent 2004-08-01 14:13:43.000000000 -0600
@@ -62,8 +62,12 @@
fi;
fi
- # RedHat and similar
export IN_HOTPLUG=1
+ # user-configured startup
+ if [ -x /etc/hotplug/net-local.agent ]; then
+ exec /etc/hotplug/net-local.agent
+
+ # RedHat and similar
if [ -x /sbin/ifup ]; then
debug_mesg invoke ifup $INTERFACE
exec /sbin/ifup $INTERFACE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-01 20:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-01 20:23 Patch to allow local net startup Sean Reifschneider
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.