Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
b4e86f63
Commit
b4e86f63
authored
May 07, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add virtualbox
parent
f307aa2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
virtualbox.sh
play.d/virtualbox.sh
+36
-0
No files found.
play.d/virtualbox.sh
0 → 100755
View file @
b4e86f63
#!/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."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment