Changeset 214 for drbl-virt/sbin
- Timestamp:
- Oct 18, 2010, 3:53:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_kvm_patch.sh
r213 r214 64 64 65 65 # = 3. Load KVM module when booting = 66 # for Debian & Ubuntu 66 67 if [ -e /etc/modules ]; then 67 68 grep kvm /etc/modules … … 69 70 echo "kvm" >> /etc/modules 70 71 fi 71 elif [ -e /etc/modules.conf ] 72 grep kvm /etc/modules.conf 72 # for CentOS & Fedora 73 elif [ -e /etc/sysconfig/modules ] 74 grep -r "modprobe kvm" /etc/sysconfig/modules/ 73 75 if [ $? -eq 1 ]; then 74 echo "kvm" >> /etc/modules.conf 76 cat > /etc/sysconfig/modules/kvm.modules << EOF 77 #!/bin/sh 78 echo -n "Loading kvm module..." 79 if $(/sbin/modprobe kvm) 80 then 81 echo "[SUCCESS]:" 82 else 83 echo "[FAILURE]:" 84 fi 85 EOF 86 87 chmod +x /etc/sysconfig/modules/kvm.modules 75 88 fi 76 89 fi
Note: See TracChangeset
for help on using the changeset viewer.