25
23
[ -f $DEFAULTFILE ] && . $DEFAULTFILE
27
25
. /lib/lsb/init-functions
31
36
if [ -n "${TPM_MODULES}" ]; then
32
37
for d in ${TPM_MODULES}; do
33
38
if echo `/sbin/lsmod` | grep -q -w "$d"; then
34
39
[ "$VERBOSE" != no ] && log_success_msg "Module already loaded: $d"
36
42
if modprobe -q $d $MODULE_OPTS 2>/dev/null; then
37
43
[ "$VERBOSE" != no ] && log_success_msg "Loaded module: $d"
39
46
if [ "$VERBOSE" != no ]; then
40
47
log_warning_msg "Unable to load module: $d"