public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Need help in using udev
@ 2013-07-25  6:00 Tarak Anumolu
  0 siblings, 0 replies; only message in thread
From: Tarak Anumolu @ 2013-07-25  6:00 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel

[-- 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¥

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-25  6:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25  6:00 Need help in using udev Tarak Anumolu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox