# for copyright infos see /usr/share/doc/kusa/COPYRIGHT
# maintained by Allblue SA, Kubic Labs (IT Department) - Switzerland
#
# autodetect insertion/remove of removable drives and matches against /etc/fstab entries
# uses the encoded version of volume label (spaces -> 0x20) for match
#
KERNEL=="[hs]d[a-z][0-9]", ENV{ID_FS_TYPE}=="crypto_LUKS", ACTION=="add", RUN+="/usr/sbin/ku-handle-removable-luks %k"
KERNEL=="[hs]d[a-z][0-9]", ENV{ID_FS_TYPE}=="crypto_LUKS", ACTION=="remove", RUN+="/usr/sbin/ku-handle-removable-luks %k"
