mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
14 lines
226 B
Bash
Executable File
14 lines
226 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" -eq "kvm" ] ; then
|
|
/etc/init.d/virtualbox stop
|
|
modprobe kvm
|
|
modprobe kvm_intel
|
|
elif [ "$1" -eq "vbox" ] ; then
|
|
rmmod kvm_intel
|
|
rmmod kvm
|
|
/etc/init.d/virtualbox start
|
|
else
|
|
echo 'WTF?' >&2
|
|
fi
|