Commit b4e86f63 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add virtualbox

parent f307aa2a
#!/bin/sh
PKGNAME=virtualbox
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION='VirtualBox from the ALT repo'
. $(dirname $0)/common.sh
vendor="$(epm print info -s)"
arch="$(epm print info -a)"
epm install $PKGNAME || exit
#if [ "$USER" != "root" ] ; then
# echo "Adding user $USER to vboxusers group:"
# echo "\$ $SUDO usermod -a -G vboxusers $USER"
# $SUDO usermod -a -G vboxusers $USER
#fi
[ "$vendor" != "alt" ] && exit
get_kernel_vlavour()
{
rrel=$(uname -r)
rflv=${rrel#*-}
rflv=${rflv%-*}
echo "$rflv"
}
flavour=$(get_kernel_vlavour)
epm update-kernel || exit
epm install kernel-modules-virtualbox-$flavour
echo "Note:Add needed users to vboxusers group via # usermod -a -G vboxusers <user>"
echo "If the kernel just updated, you need reboot the system before VirtualBox using."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment