1 2 3 4 5 6 7
#!/bin/sh # close everything which is not busy rm -f /etc/udev/rules.d/70-luks.rules >/dev/null 2>&1 for i in /dev/mapper/luks-*; do cryptsetup luksClose $i >/dev/null 2>&1 done