From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Reifschneider Date: Sun, 01 Aug 2004 20:23:49 +0000 Subject: Patch to allow local net startup. Message-Id: <20040801202008.GA7885@tummy.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" List-Id: To: linux-hotplug@vger.kernel.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 tummy.com, ltd. - Linux Consulting since 1995. Qmail, Python, SysAdmin Back off man. I'm a scientist. http://HackingSociety.org/ --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="hotplug-netlocal.patch" --- 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 --T4sUOijqQbZv57TR-- --9247E62921.1091391617/secure-- ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel