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

Reply via email to