summarylogtreecommitdiffstats
path: root/genymotion-beta.install
diff options
context:
space:
mode:
authorArafat Zahan2020-03-22 14:11:32 +0600
committerArafat Zahan2020-03-22 14:11:32 +0600
commit990011ad2c2fc600a2e0cbbeb851ecc03e0cb011 (patch)
tree7374712867b8431c38e0a348d026c985cc0026d7 /genymotion-beta.install
downloadaur-990011ad2c2fc600a2e0cbbeb851ecc03e0cb011.tar.gz
Uploading genymotion-beta to AUR. Based on the genymotion pkgbuild
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
+}
+