summary refs log tree commit diff
path: root/noarch/post_install.sh
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2024-01-08 09:40:24 -0600
committerStarfall <us@starfall.systems>2024-01-08 09:40:24 -0600
commita91d41375fc87c958f0b4b2ec09d5bfa2bab9414 (patch)
tree5ecf2d3f5b5962bb2d317ad4ce1fddd88e8b0ed7 /noarch/post_install.sh
Initial commit HEAD main
Diffstat (limited to 'noarch/post_install.sh')
-rwxr-xr-xnoarch/post_install.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/noarch/post_install.sh b/noarch/post_install.sh
new file mode 100755
index 0000000..d0b6527
--- /dev/null
+++ b/noarch/post_install.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+SCRIPTS_DIR="$(dirname "$0")"
+
+# load 'scripting' run-time support utility functions
+. "${SCRIPTS_DIR}/scripting_utils"
+
+# load 'package' run-time support utility functions
+. "${SCRIPTS_DIR}/package_utils"
+environment_init "$(basename "$0" ".sh")"
+
+
+UNINSTALLMODE=
+while [ -n "$1" ]; do
+	case "$1" in
+	-u) UNINSTALLMODE=1 ;;
+	vendor=*) specify_vendor "${1#vendor=}" ;;
+	*) break ;;
+	esac
+	shift
+done
+
+if [ "$UNINSTALLMODE" ]; then
+	show_nls_message "**** Uninstall finished."
+else
+	show_nls_message "**** Install finished."
+fi