# This is 55-fatdog-action.rules
# This file provide rules to handle actions:
# - desktop drive icons for Rox
#
# Note 1: this file was originally 50-udev-puppy-basic.rules, heavily modified for fatdog64-600
# Note 2: device node permission is handled elsewhere (54-fatdog-permissions.rules), not here

# alsa devices
# kernel devices cannot be renamed, will spit warning in recent kernels
#KERNEL=="controlC[0-9]*",	NAME="snd/%k"
#KERNEL=="hw[CD0-9]*",		NAME="snd/%k"
#KERNEL=="pcm[CD0-9cp]*",	NAME="snd/%k"
#KERNEL=="midi[CD0-9]*",		NAME="snd/%k"
#KERNEL=="timer",			NAME="snd/%k"
#KERNEL=="seq",				NAME="snd/%k"

KERNEL=="ram1",			SYMLINK+="ram"
KERNEL=="video0",		SYMLINK+="video"
KERNEL=="radio0",		SYMLINK+="radio"
KERNEL=="audio0",		SYMLINK+="audio"
KERNEL=="dsp0",			SYMLINK+="dsp"
KERNEL=="fb0",			SYMLINK+="fb"
KERNEL=="qft0",			SYMLINK+="ftape"
KERNEL=="isdnctrl0",	SYMLINK+="isdnctrl"
KERNEL=="mixer0",		SYMLINK+="mixer"
KERNEL=="ram0",			SYMLINK+="ramdisk"
KERNEL=="sbpcd0",		SYMLINK+="sbpcd"
KERNEL=="radio0",		SYMLINK+="radio"
KERNEL=="tty0",			SYMLINK+="systty"
KERNEL=="vbi0",			SYMLINK+="vbi"
KERNEL=="null",			SYMLINK+="XOR"

# Rox desktop drive icons 
ACTION=="add", SUBSYSTEM=="block", RUN+="/usr/sbin/fatdog-drive-icon-udev-handler.sh"
ACTION=="remove", SUBSYSTEM=="block", RUN+="/usr/sbin/fatdog-drive-icon-udev-handler.sh"
ACTION=="change", SUBSYSTEM=="block", RUN+="/usr/sbin/fatdog-drive-icon-udev-handler.sh"
