lkml.org 
[lkml]   [2013]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectNeed help in using udev

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
\
 
 \ /
  Last update: 2013-07-25 08:41    [W:0.091 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site