summarylogtreecommitdiffstats
path: root/genymotion.install
diff options
context:
space:
mode:
authorDaniele Formichelli2015-06-09 09:36:36 +0200
committerDaniele Formichelli2015-06-09 09:36:36 +0200
commit8a2d726a624f3f4b0ab16b6d294891d7a506fcfb (patch)
tree58d40cf4dcd1d768318c7ae59fd3f74f6f3d04d0 /genymotion.install
downloadaur-8a2d726a624f3f4b0ab16b6d294891d7a506fcfb.tar.gz
Initial import
Diffstat (limited to 'genymotion.install')
-rw-r--r--genymotion.install33
1 files changed, 33 insertions, 0 deletions
diff --git a/genymotion.install b/genymotion.install
new file mode 100644
index 000000000000..3fe90337d96e
--- /dev/null
+++ b/genymotion.install
@@ -0,0 +1,33 @@
+update-icon(){
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ update-desktop-database -q
+}
+
+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() {
+ update-icon
+ adv
+}
+
+post_upgrade() {
+ remove_slink
+ update-icon
+ adv
+}
+
+post_remove() {
+ remove_slink
+ update-icon
+}
+