From ac9110545523883e7ee1e94d21f3d2e8a5390e61 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 3 Sep 2012 10:50:02 +0200 Subject: [PATCH] Replace 'modprobe -l' command with modinfo(8) command line Thanks kmod for deprecating 'modprobe -l'. Thanks: Evgeni Golov for the idea with modinfo Acked-by: Evgeni Golov --- autoconfig.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoconfig.functions b/autoconfig.functions index 441411f..012cdf8 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -2149,7 +2149,7 @@ fi # checkbootparam "BOOT_IMAGE=debian2hd config_virtualbox_shared_folders() { if [ -r /proc/acpi/battery/BAT0/info ] && grep -q 'OEM info:.*innotek' /proc/acpi/battery/BAT0/info ; then einfo "VirtualBox detected, trying to set up Shared Folders." - if ! modprobe -l | grep -q vboxsf.ko ; then + if ! modinfo vboxsf &>/dev/null ; then ewarn "vboxsf driver not present, not setting up VirtualBox Shared Folders." eend 0 elif ! [ -x /usr/sbin/VBoxService ] ; then -- 2.1.4