On Thu, Aug 14, 2008 at 12:12 PM, Mike Rooney <[EMAIL PROTECTED]> wrote: > - It currently can't detect the mount state, so it assumes it is mounted > when run. Change this on line 89 if yours isn't mounted, or just mount it > before running. Can anyone give me a Python line[s] that will detect this?
Hi Mike- I can point you to the source code of ecryptfs-setup-private, where I have a check (in shell code) to see if it's already mounted. It looks something like this: ... # Check for active mounts MOUNTPOINT="$HOME/$PRIVATE_DIR" CRYPTDIR="$HOME/.$PRIVATE_DIR" grep -qs "$MOUNTPOINT " /proc/mounts && error "[$MOUNTPOINT] is already mounted" grep -qs "$CRYPTDIR " /proc/mounts && error "[$CRYPTDIR] is already mounted" ... Basically, dig through /proc/mounts looking for the private directory. :-Dustin -- Suggestion: GUI frontend(s) for ecryptfs-utils https://bugs.launchpad.net/bugs/257901 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs