virtualbox.sh 737 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=virtualbox
SUPPORTEDARCHES="x86_64 x86"
5
VERSION="$2"
6
DESCRIPTION='VirtualBox from the ALT repo'
7
URL="https://www.virtualbox.org/"
8 9 10 11 12 13 14 15 16 17 18 19 20 21

. $(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

22
#[ "$vendor" != "alt" ] && exit
23

Vitaly Lipatov's avatar
Vitaly Lipatov committed
24
# epm can install module correctly
25
epm install kernel-module-virtualbox || exit
26

27
echo
28 29
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."