summarylogtreecommitdiffstats
path: root/lsi-lsa.install
diff options
context:
space:
mode:
authorsL1pKn072017-09-05 19:33:02 +0200
committersL1pKn072017-09-05 19:34:35 +0200
commit786c4e40404c9c9c1ea33602c394b5bee5baf4f4 (patch)
treef19878fd91d0c489bda2a5f555c0c7a27b92aa9c /lsi-lsa.install
downloadaur-786c4e40404c9c9c1ea33602c394b5bee5baf4f4.tar.gz
moh
Diffstat (limited to 'lsi-lsa.install')
-rw-r--r--lsi-lsa.install47
1 files changed, 47 insertions, 0 deletions
diff --git a/lsi-lsa.install b/lsi-lsa.install
new file mode 100644
index 000000000000..201714e5f0f1
--- /dev/null
+++ b/lsi-lsa.install
@@ -0,0 +1,47 @@
+all_off="$(tput sgr0)"
+bold="${all_off}$(tput bold)"
+yellow="${bold}$(tput setaf 3)"
+blue="${bold}$(tput setaf 4)"
+green="${bold}$(tput setaf 2)"
+
+_instructions() {
+ printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off}
+${green}==>${all_off} ${bold}For operate with 'LSI Storage Authority Software':${all_off}
+ ${blue}->${all_off} For start '${bold}LSI Storage Authority Software${all_off}' service, run:
+ '\x23 ${bold}systemctl start lsi_lsa${all_off}'
+ ${blue}->${all_off} For open '${bold}LSI Storage Authority Software${all_off}' client:
+ Launch any internet browser and open:
+ '${bold}http://127.0.0.1:2463${all_off}'
+ ${blue}->${all_off} If you need more info for the other modes/config, please see the README in
+ '${bold}/usr/share/docs/lsi_lsa/LSA_Linux_readme.txt${all_off}'\n"
+}
+
+_instructions_usage() {
+ printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off}
+${green}==>${all_off} ${bold}For operate with 'LSI Storage Authority Software':${all_off}
+ ${blue}->${all_off} For open '${bold}LSI Storage Authority Software${all_off}' client:
+ Launch any internet browser and open:
+ '${bold}http://127.0.0.1:2463${all_off}'\n"
+}
+
+post_install() {
+ _instructions
+}
+
+post_upgrade() {
+ _instructions_usage
+}
+
+post_remove() {
+ paths=(/opt/lsi/LSIStorageAuthority)
+ first=true
+ for path in ${paths[@]}; do
+ if [ -d $path ]; then
+ if $first; then
+ first=false
+ printf "${green}==>${all_off} ${bold}Leftover Paths:${all_off}\n"
+ fi
+ printf "${blue} -> ${all_off} ${bold}$path${all_off}\n"
+ fi
+ done
+}