Cross Reference:
xref
: /
vbox
/
debian
/
preinst
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
preinst revision 6be66de4257f4f564e35f7b8ee57a282e3cf3e96
10139
N/A
#!/
bin
/
bash
-e
10139
N/A
10139
N/A
. /
usr
/
share
/
debconf
/
confmodule
15710
N/A
db_version
2.0
10139
N/A
db_capb
backup
10139
N/A
10139
N/A
# check for old vboxdrv modules
10139
N/A
if
find
/
lib
/
modules
-
name
vboxdrv
\*
2
>/
dev
/
null
|
grep
-q
vboxdrv
;
then
10139
N/A
# old modules found
15153
N/A
db_get
virtualbox
/
delete-old-modules
10139
N/A
if
[
"
$RET
"
=
"false"
];
then
15308
N/A
cat
<< EOF
10139
N/A
Old vboxdrv kernel modules found in
16362
N/A
EOF
10139
N/A
find
/
lib
/
modules
-
name
vboxdrv
\*
2
>/
dev
/
null
|
sed
"s+\(.*\)+ \1+g"
10139
N/A
cat
<< EOF
10139
N/A
Removing of these modules denied by debconf setting
10139
N/A
EOF
16160
N/A
else
12773
N/A
db_input
critical
virtualbox
/
delete-old-modules
||
true
15153
N/A
db_go
||
true
15153
N/A
db_get
virtualbox
/
delete-old-modules
12773
N/A
if
[
"
$RET
"
=
"true"
];
then
13633
N/A
find
/
lib
/
modules
-
name
vboxdrv
\*
2
>/
dev
/
null
|
xargs
rm
-f
2
>/
dev
/
null
13992
N/A
fi
15555
N/A
fi
15428
N/A
fi
10139
N/A