help with removing symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need a symlink removed as quickly as possible after the device is
disconnected.

Here is my rule: 

# ZeeVee 

ACTION=="remove", RUN+=/etc/zv_clean
SUBSYSTEM!="tty", GOTO="zeevee_end"
KERNEL=="ttyUSB[0-9]*|ttyACM[0-9]*",
SYMLINK+="ZvBox/$ENV{ID_SERIAL_SHORT}", MODE="0666"

LABEL="zeevee_end"


I thought symlinks get deleted by default, but no luck. So I tried the
ACTION statement and a script to find the orphan links, but my script
does not fire.




--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux