Replace '[ -d "/home/$i/.ecryptfs" -o -L "/home/$i/.ecryptfs" ]' with '[ -d "/home/$i/.ecryptfs" ] || [ -L "/home/$i/.ecryptfs" ]' for portability. (Actually, do you even need to do both checks? -d returns true if given a symlink to a directory.)
Otherwise I think this is fine. -- prevent ecryptfs-utils from being uninstalled if in use https://bugs.launchpad.net/bugs/331085 You received this bug notification because you are a member of eCryptfs, which is subscribed to ecryptfs-utils in ubuntu. Status in “ecryptfs-utils” source package in Ubuntu: In Progress Bug description: Binary package hint: ecryptfs-utils It's very easy to do: $ sudo apt-get remove ecryptfs-utils In Ubuntu jaunty, if your account is set up with an encrypted home directory, this will make it impossible (okay, very, very difficult) to even log in to your system. The ecryptfs-utils packaging needs a prerm check to determine if ecryptfs-utils is in use, before allowing the remove to continue. :-Dustin _______________________________________________ Mailing list: https://launchpad.net/~ecryptfs Post to : [email protected] Unsubscribe : https://launchpad.net/~ecryptfs More help : https://help.launchpad.net/ListHelp

