From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Wed, 10 Nov 2010 16:32:48 +0000 Subject: Re: [PATCH 1/1] UDEV - Add 'udevlom' command line param to start_udev Message-Id: <4CDAC930.4010801@redhat.com> List-Id: References: <20101103165505.GA3281@fedora-14-r710.oslab.blr.amer.dell.com> In-Reply-To: <20101103165505.GA3281@fedora-14-r710.oslab.blr.amer.dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Narendra_K@Dell.com Cc: linux-hotplug@vger.kernel.org, netdev@vger.kernel.org, Matt_Domsch@Dell.com, Jordan_Hargrave@Dell.com, Charles_Rose@Dell.com On 11/03/2010 05:55 PM, Narendra_K@Dell.com wrote: > Hello, > > This patch allows users to specify if they want the onboard network > interfaces to be renamed to lomN by implementing a command line param > 'udevlom'. > > From: Narendra K > Subject: [PATCH] UDEV - Add 'udevlom' command line param to start_udev > > This patch implements 'udevlom' command line parameter, which > when passed, results in onboard network interfaces getting > renamed to lomN. > > Signed-off-by: Narendra K > --- > start_udev | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/start_udev b/start_udev > index 49fc286..57d60c9 100755 > --- a/start_udev > +++ b/start_udev > @@ -32,6 +32,7 @@ export TZ=3D/etc/localtime > . /etc/init.d/functions > > prog=3Dudev > +cmdline=3D`cat /proc/cmdline` > > touch_recursive() { > ( cd $1; > @@ -60,6 +61,10 @@ fi > > ret=3D$[$ret + $?] > > +if strstr "$cmdline" udevlom; then > + /sbin/udevadm control --env=3DUDEVLOM=3D"y" > +fi > + > /sbin/udevadm trigger --type=3Dsubsystems --action=ADd > /sbin/udevadm trigger --type=DEvices --action=ADd > /sbin/udevadm settle start_udev is obsolete with the use of systemd service files anyway in Fedo= ra>=15