summaryrefslogtreecommitdiffstats
path: root/savage2/savage2.install
diff options
context:
space:
mode:
Diffstat (limited to 'savage2/savage2.install')
-rw-r--r--savage2/savage2.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/savage2/savage2.install b/savage2/savage2.install
new file mode 100644
index 0000000..5182e85
--- /dev/null
+++ b/savage2/savage2.install
@@ -0,0 +1,18 @@
+post_install() {
+ # Update runpath
+ cd /opt/savage2
+ ./savage2_update.bin --update-runpath
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ echo "==> To completely remove Savage 2, you will need to manually remove"
+ echo "==> /opt/savage2/ as root"
+}
+
+op=$1
+shift
+$op $*