public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tarak Anumolu <tarak.anumolu@samsung.com>
To: kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org
Subject: Need help in using udev
Date: Thu, 25 Jul 2013 06:00:25 +0000 (GMT)	[thread overview]
Message-ID: <10322723.303681374732025069.JavaMail.weblogic@epml08> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=windows-1252, Size: 1613 bytes --]


Hi

My name is Tarak, working in Samsung-SouthKorea.

I got some problem in using udev, particulary in writing rules for network interfaces.

Following is the rule for my udev.

Every thing is working fine except the network interface.

My aim is to run network.sh script when the interface got connected/ disconnected.

Can anyone help me on this.


# Media automounting
SUBSYSTEM=="block", ACTION=="add"    RUN+="/etc/udev/scripts/mount.sh"
SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh"
# Added HDD/USB Storage Hotplug by BSP Team at 2013/2/18
KERNEL=="sd[a-z]", RUN+="/root/usb_hotplug.sh"
KERNEL=="mouse0", RUN+="/root/mouse_hotplug.sh"
# Handle network interface setup

#ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:09:18:30:97:02", RUN+="/root/network.sh"
#ACTION=="remove", SUBSYSTEM=="net", SYSFS{address}=="00:09:18:30:97:02",  RUN+="/root/network.sh"

# The first framebuffer is symlinked to /dev/fb
KERNEL=="fb0", SYMLINK+="fb"
# The first rtc device is symlinked to /dev/rtc
KERNEL=="rtc0", SYMLINK+="rtc"
# Try and modprobe for drivers for new hardware
ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
# Create a symlink to any touchscreen input device
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"



Regards


Tarak Ramgopal Anumolu 
Security Solution Division
SAMSUNG TECHWIN CO.,LTDÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

                 reply	other threads:[~2013-07-25  6:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=10322723.303681374732025069.JavaMail.weblogic@epml08 \
    --to=tarak.anumolu@samsung.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@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