summarylogtreecommitdiffstats
path: root/genymotion-beta.install
diff options
context:
space:
mode:
Diffstat (limited to 'genymotion-beta.install')
-rw-r--r--genymotion-beta.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/genymotion-beta.install b/genymotion-beta.install
new file mode 100644
index 000000000000..da5db1a8fe71
--- /dev/null
+++ b/genymotion-beta.install
@@ -0,0 +1,25 @@
+adv(){
+ echo -e "make sure to have this modules loaded: \n\tvboxdrv\n\tvboxnetflt\n\tvboxnetadp\n\tvboxpci"
+ echo "you can simply add them to /etc/modules-load.d/virtualbox.conf with this command:"
+ echo "# echo -e \"vboxdrv\\nvboxnetflt\\nvboxnetadp\\nvboxpci\" > /etc/modules-load.d/virtualbox.conf"
+}
+
+remove_slink(){
+ # in previous version install script created symbolic links
+ [[ -s /usr/local/bin/genymotion ]] && rm /usr/local/bin/genymotion
+ [[ -s /usr/local/bin/genymotion-shell ]] && rm /usr/local/bin/genymotion-shell
+}
+
+post_install() {
+ adv
+}
+
+post_upgrade() {
+ remove_slink
+ adv
+}
+
+post_remove() {
+ remove_slink
+}
+