VirtualBox

source: vbox/trunk/debian/preinst@ 6076

最後變更 在這個檔案從6076是 5859,由 vboxsync 提交於 17 年 前

deb/rpm/run: Remove any old kernel module of the current kernel before compiling a new one in '/etc/init.d/vboxdrv setup'. Use "vboxdrv\.*" instead of vboxdrv\* for finding them.

檔案大小: 744 位元組
 
1#!/bin/bash -e
2
3. /usr/share/debconf/confmodule
4db_version 2.0
5db_capb backup
6
7# check for old vboxdrv modules
8if find /lib/modules -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
9 # old modules found
10 db_get virtualbox-ose/delete-old-modules
11 if [ "$RET" = "false" ]; then
12 cat << EOF
13Old vboxdrv kernel modules found in
14EOF
15 find /lib/modules -name "vboxdrv\.*" 2>/dev/null|sed "s+\(.*\)+ \1+g"
16 cat << EOF
17Removing of these modules denied by debconf setting
18EOF
19 else
20 db_input critical virtualbox-ose/delete-old-modules || true
21 db_go || true
22 db_get virtualbox-ose/delete-old-modules
23 if [ "$RET" = "true" ]; then
24 find /lib/modules -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
25 fi
26 fi
27fi
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette