From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Mon, 13 Nov 2006 06:35:41 +0000 Subject: Re: write_net_rules: path-based persistence #2 Message-Id: <4558123D.7090803@ums.usu.ru> List-Id: References: <45564207.4040000@kadzban.is-a-geek.net> In-Reply-To: <45564207.4040000@kadzban.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Bryan Kadzban wrote: > Modifications to 75-persistent-net-generator.rules have it run path_id, > and specify by-mac to write_net_rules by default. To move to path-based > persistence for new devices, "sed -i -e 's/by-mac/by-path/' > 75-persistent-net-generator.rules" or something similar. (by-path > ignores all subsequent arguments, so the $attr{address} is still > accepted, though it does nothing.) > Maybe it is a good idea to remove $attr{address} from the command line in 75-persistent-net-generator.rules, because of the code below? > + if [ "$2" ] ; then > + MAC_ADDR="$2" > + else > + MAC_ADDR=$(sysread address) > + fi > -- Alexander E. Patrakov ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ 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