From: Harald Hoyer <harald@redhat.com>
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
Subject: Re: [PATCH 1/1] UDEV - Add 'udevlom' command line param to start_udev
Date: Wed, 10 Nov 2010 17:32:48 +0100 [thread overview]
Message-ID: <4CDAC930.4010801@redhat.com> (raw)
In-Reply-To: <20101103165505.GA3281@fedora-14-r710.oslab.blr.amer.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<narendra_k@dell.com>
> 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<narendra_k@dell.com>
> ---
> 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=/etc/localtime
> . /etc/init.d/functions
>
> prog=udev
> +cmdline=`cat /proc/cmdline`
>
> touch_recursive() {
> ( cd $1;
> @@ -60,6 +61,10 @@ fi
>
> ret=$[$ret + $?]
>
> +if strstr "$cmdline" udevlom; then
> + /sbin/udevadm control --env=UDEVLOM="y"
> +fi
> +
> /sbin/udevadm trigger --type=subsystems --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 Fedora>=15
next prev parent reply other threads:[~2010-11-10 16:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 16:55 [PATCH 1/1] UDEV - Add 'udevlom' command line param to start_udev Narendra_K
2010-11-03 18:05 ` Greg KH
2010-11-03 18:32 ` Marco d'Itri
2010-11-04 8:37 ` Sujit K M
2010-11-05 2:58 ` Matt Domsch
2010-11-08 8:42 ` Sujit K M
2010-11-08 18:17 ` Matt Domsch
2010-11-15 16:47 ` Matt Domsch
2010-11-15 17:16 ` Ben Hutchings
2010-11-15 19:32 ` Rick Jones
2010-11-24 20:57 ` Loke, Chetan
2010-11-24 21:13 ` Loke, Chetan
2010-11-25 2:56 ` Bill Fink
2010-11-26 2:09 ` Matt Domsch
2010-11-10 16:32 ` Harald Hoyer [this message]
2010-11-10 16:37 ` Harald Hoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CDAC930.4010801@redhat.com \
--to=harald@redhat.com \
--cc=Charles_Rose@Dell.com \
--cc=Jordan_Hargrave@Dell.com \
--cc=Matt_Domsch@Dell.com \
--cc=Narendra_K@Dell.com \
--cc=linux-hotplug@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).