~colin-king/ecryptfs/misc-fixes

Viewing all changes in revision 303.

  • Committer: Dustin Kirkland
  • Date: 2009-02-03 08:50:36 UTC
  • Revision ID: git-v1:e5a1d5d9fb2bac724e45c7d9892a622697b52934
move the modprobe to a better place

Move the modprobe ecryptfs code to the get-version function.
Use /sbin since it might not be in the path.
Discard errors, since this code might not be called by root.
Add a comment, explaining what's going on.

A printf() if it still fails, noting that the user might need
to run modprobe ecryptfs as root might be a nice enhancement.

From: Michal Hlavinka <mhlavink@redhat.com>
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: