3 # Copyright 1999 American Power Conversion, All Rights Reserved
5 # Description: This file is used to configure PowerChute Plus
8 # Usage: ./Config - will configure PowerChute PLUS after
9 # installing it from an RPM archive
16 # --------------------------------------------------------------------------
17 # Do not change definitons for TRUE and FALSE from below, or '&&' shell logic
18 # will fail. TRUE=0 and FALSE!=0 is shell convention
19 # --------------------------------------------------------------------------
33 NOT_SYM1="Bad battery"
35 NOT_SYM2="UPS on bypass"
38 SYM10="TimeOutFactor = 20"
39 SYM11="UPS system is in maintenance bypass set by switch"
40 NOT_SYM4="UPS on bypass: user set via rear switch"
42 NOT_SYM5="Actions = LU"
44 FULL_PROD_NAME="PowerChute Plus for Unix"
47 LINUX_INTEL_STRING="Linux"
48 OS_NAME="$LINUX_INTEL_STRING"
49 MONO_WARN_COLOR_STRING="WarningColor = LightGray"
50 MONO_ERR_COLOR_STRING="ErrorColor = LightGray"
53 SHUTDOWN_SEARCH_STRING="swapoff -a"
54 STARTUP_FILE_PATH="/etc/rc.d/init.d"
55 STARTUP_FILE="$STARTUP_FILE_PATH/upsd"
56 STARTUP_RC_PATH="/etc/rc.d"
57 MODEM_ALLOWED_PORT_NAMES="/dev/modem,/dev/ttyS0,/dev/ttyS1"
58 MODEM_PORT_NAME="/dev/modem"
59 SHUTDOWN_FILE="/etc/rc.d/init.d/halt"
60 SHUTDOWN_FILE_BACKUP="/usr/lib/powerchute/halt"
61 SHUTDOWN_COMMAND_STRING="if [ -r /upsoff.cmd ] #POWERCHUTE\\
63 . ./upsoff.cmd >/dev/null #POWERCHUTE\\
64 rm -f /upsoff.cmd #POWERCHUTE\\
72 SKIP_PORT_VERIFICATION=$FALSE
74 # Variables that start uninitialized
82 RUN_COMMAND_FILES_AS_ROOT=
90 #######################
91 # Functions used below
92 #######################
94 ###########################################################################
95 # IsYN handles Yes No responses
96 ###########################################################################
102 if [ "$tmp_name" = "Linux" ]
105 elif [ -r /usr/5bin/echo ]
107 /usr/5bin/echo "$string"
115 Echo "----------------------------------------------------------------------------"
121 default="Press Enter to continue"
122 string=${1:-$default}
158 if [ $rval -eq $INVALID ]
161 Echo "Invalid Response..."
170 valid_response=$FALSE
171 while [ $valid_response -eq $FALSE ]
173 Echo "$query_string \\c"
189 set `./ups_adjust -in -d$dev_name -c$eeprom -t$CABLE_TYPE 2>/dev/null`
195 elif [ "$1" = "2G+" ]
203 elif [ "$1" = "VAL" ]
210 if [ $Is2g -eq $TRUE ]
212 if [ `expr $current \> 20` -eq 1 ]
230 while [ $okay_flag -eq $FALSE ]
232 set `./ups_adjust -sn -d$dev_name -c7 -t$CABLE_TYPE 2>/dev/null`
235 if [ -z "$2" ] || [ $2 -ne 0 ]
239 Echo "Your UPS will not accept an attempt to change its eeproms."
240 Echo "If your UPS has dip switches on the back panel, check that they are all in"
241 Echo "'On' position. After installation, you can set them back to their"
242 Echo "original state if you wish."
244 continue_loop_flag=$TRUE
245 while [ $continue_loop_flag -eq $TRUE ]
247 Echo "Do you wish to Retry setting this value, or Continue on with"
248 Echo "the installation? [R/C] \\c"
250 if [ -z "$response" ]
253 Echo "Invalid response..."
257 continue_loop_flag=$FALSE
261 continue_loop_flag=$FALSE
267 Echo "Invalid Response..."
285 # This function takes an eeprom and a device name and
286 # it determines the current setting of the eeprom and
287 # returns this value. It returns -1 on error.
288 GetCurrentEepromSetting() {
293 set `./ups_adjust -in -d$dev_name -c$eeprom -t$CABLE_TYPE 2>/dev/null`
310 # This functions takes an eeprom, a check value, and a device
311 # name and it determines the next valid eeprom setting value
312 # greater than the check value.
313 GetNextEepromValueGreaterThan() {
320 GetCurrentEepromSetting $eeprom $dev_name
323 if [ "$starting_val" -ne "-1" ]
326 previous_val=$starting_val
327 while [ $done -eq $FALSE ]
329 set `./ups_adjust -sn -d$dev_name -c$eeprom -t$CABLE_TYPE 2>/dev/null`
330 if [ "$2" -eq "$starting_val" ]
334 if [ "$2" -gt "$check_value" ]
336 if [ "$2" -lt "$previous_val" ]
351 CycleUntilAcceptableValue() {
360 while [ $okay_flag -eq $FALSE ]
363 set `./ups_adjust -sn -d$dev_name -c$eeprom -t$CABLE_TYPE 2>/dev/null`
364 if [ "$2" -eq "$desired_value" ]
368 elif [ "$2" -eq "$current_value" ]
370 #We either can't change the value, or we are back
371 #where we started and our desired value never turned up
375 Echo "Unable to modify the value of this eeprom. If you are unable to"
376 Echo "change this value through the powerchute user interface, refer to the UPS"
377 Echo "manual, or contact APC Technical Support."
386 cp /tmp/temp_ini.out /tmp/temp_ini.in
390 #######################################################################
391 # Trap signals so we can clean up temp files
392 #######################################################################
394 trap 'Echo \\nsignal caught, Quitting.;exit' 1 2 15
396 # ---------------------------------------------------------------------
397 # ----------------------------- Start ---------------------------------
398 # ---------------------------------------------------------------------
399 cd /usr/lib/powerchute
402 #######################################################################
404 #######################################################################
405 Echo "-----------------------------------------------------------------------"
406 Echo " PowerChute Plus for Linux v$PROD_HEADER Configuration Script"
407 Echo " Copyright American Power Conversion 1999"
408 Echo "-----------------------------------------------------------------------"
411 #######################################################################
412 # Verify root authority
413 #######################################################################
415 root_string=`id | grep root`
417 if [ -z "$root_string" ]
422 Echo "$INST_SCRIPT_NAME must be run with root privileges!"
425 IsYNLoop "Do you wish to continue anyway?"
436 #######################################################################
437 # Select an APC Hardware Product
438 #######################################################################
440 VALID_HARDWARE_SELECTED=$FALSE
442 while [ $VALID_HARDWARE_SELECTED -eq $FALSE ]
445 Echo " 1) Matrix-UPS"
448 Echo " 4) Back-UPS Pro"
449 Echo " 5) Symmetra Power Array"
450 Echo " 6) Smart-UPS DP"
452 Echo "Which APC Hardware will $FULL_PROD_NAME be running with [?] \\c"
454 case "$INST_HARDWARE" in
456 VALID_HARDWARE_SELECTED=$TRUE
457 APC_HARDWARE_PROD="Matrix"
468 VALID_HARDWARE_SELECTED=$TRUE
469 APC_HARDWARE_PROD="SmartUps"
479 VALID_HARDWARE_SELECTED=$TRUE
480 APC_HARDWARE_PROD="BackUps"
488 # No way to verify comm for simple sig, assume
489 # OK to skip warning banner
494 VALID_HARDWARE_SELECTED=$TRUE
495 APC_HARDWARE_PROD="SmartUps"
505 VALID_HARDWARE_SELECTED=$TRUE
506 APC_HARDWARE_PROD="Symmetra"
516 VALID_HARDWARE_SELECTED=$TRUE
517 APC_HARDWARE_PROD="SmartUps"
527 VALID_HARDWARE_SELECTED=$FALSE
529 Echo "Invalid Selection...."
534 #######################################################################
535 # Ask about MeasureUps
536 #######################################################################
538 if [ $SIGNAL_TYPE = $SMART ]
542 Echo "The Measure-UPS is a device which is designed to perform environmental "
543 Echo "monitoring in conjunction with $FULL_PROD_NAME"
547 IsYNLoop "Do you currently have a Measure-UPS attached to the UPS?"
562 #######################################################################
564 #######################################################################
568 Echo "$FULL_PROD_NAME is able to monitor other hosts. However, in order"
569 Echo "to monitor other hosts TCP/IP must be installed. If you do not have"
570 Echo "TCP/IP installed, answer 'n' to the following question."
573 IsYNLoop "Do you currently have TCP/IP Installed?"
583 ############################################################################
584 # Ask about coloring schemes...
585 ############################################################################
588 Echo "If you will be using the Motif version of the User Interface on a "
589 Echo "monochrome monitor, using the Monochrome Coloring scheme is recommended."
592 Echo " 1) Use Default Color scheme"
593 Echo " 2) Use Monochrome Color scheme"
595 valid_color_scheme=$FALSE
596 while [ $valid_color_scheme -eq $FALSE ]
598 Echo "Which color scheme do you wish to use [1]? \\c"
600 if [ -z "$color_scheme" ] || [ "$color_scheme" = "1" ]
602 valid_color_scheme=$TRUE
603 UI_MONO_COLOR_SCHEME=$FALSE
605 if [ "$color_scheme" = "2" ]
607 UI_MONO_COLOR_SCHEME=$TRUE
608 valid_color_scheme=$TRUE
610 valid_color_scheme=$FALSE
616 #######################################################################
617 # Select communications port
618 #######################################################################
622 Echo "$FULL_PROD_NAME requires complete control of the serial port. No"
623 Echo "processes, including gettys, are allowed to be accessing the port."
624 Echo "Therefore, the serial port you select must NOT be enabled for logins. To"
625 Echo "ensure that $FULL_PROD_NAME has control of the serial port, make"
626 Echo "sure that it is not enabled for logins. To disable the port for logins"
627 Echo "consult the $FULL_PROD_NAME manual."
630 VALID_TTY_SELECTED=$FALSE
632 while [ $VALID_TTY_SELECTED -eq $FALSE ]
639 Echo "Which serial device will be dedicated to $FULL_PROD_NAME [?] \\c"
643 ALLOWED_PORT_NAMES="$TTY1,$TTY2"
645 VALID_TTY_SELECTED=$TRUE
648 ALLOWED_PORT_NAMES="$TTY1,$TTY2"
650 VALID_TTY_SELECTED=$TRUE
653 VALID_TEMP_TTY=$FALSE
654 while [ $VALID_TEMP_TTY -eq $FALSE ]
656 Echo "Enter full path name of a serial device \\c"
658 if [ -z "$TEMP_TTY" ]
660 Echo "Invalid Selection"
664 ALLOWED_PORT_NAMES="$TTY1,$TTY2,$INST_TTY"
667 VALID_TTY_SELECTED=$TRUE
671 Echo "Invalid Selection..."
676 #######################################################################
678 #######################################################################
682 case "$SIGNAL_TYPE" in
684 case "$CABLE_TYPE" in
686 if [ "$APC_HARDWARE_PROD" = "Symmetra" ]
688 Echo "You should have the cable, #940-1524C attached to $INST_TTY"
690 Echo "You should have the black cable, #940-0024C attached to $INST_TTY"
694 Echo "You should have the grey cable, #940-0095A attached to $INST_TTY"
699 Echo "You should have the grey cable, #940-0023A attached to $INST_TTY"
702 Echo "Please verify."
705 ######################################################################
706 # Determine if user wants to run command files as root
707 ######################################################################
711 Echo "Command files may be executed with root privileges or with the"
712 Echo "privileges you assign to the pwrchute account (allowing you to"
713 Echo "customize command file execution according to your system"
714 Echo "requirements)."
718 IsYNLoop "Do you want to execute command files as root?"
721 RUN_COMMAND_FILES_AS_ROOT=$TRUE
724 RUN_COMMAND_FILES_AS_ROOT=$FALSE
728 ######################################################################
729 # Determine if user wants to send email as root
730 ######################################################################
734 Echo "E-mail may be sent with root privileges or with the privileges you"
735 Echo "assign to the pwrchute account."
739 IsYNLoop "Do you want to send e-mail as root?"
742 SEND_EMAIL_AS_ROOT=$TRUE
745 SEND_EMAIL_AS_ROOT=$FALSE
750 #######################################################################
751 # Print install info for customer verification
752 #######################################################################
756 Echo "PRODUCT : $FULL_PROD_NAME"
757 Echo "DEDICATED TTY : $INST_TTY"
758 case "$INST_HARDWARE" in
759 1) UPS_TYPE="Matrix-UPS"
761 2) UPS_TYPE="Smart-UPS"
763 3) UPS_TYPE="Back-UPS"
765 4) UPS_TYPE="Back-UPS Pro"
767 5) UPS_TYPE="Symmetra Power Array"
769 6) UPS_TYPE="Smart-UPS DP"
772 Echo "UPS TYPE : $UPS_TYPE"
773 if [ $SIGNAL_TYPE = $SMART ] && [ $MEASURE_UPS -eq $TRUE ]
775 Echo "Measure-UPS INSTALLED : TRUE"
777 if [ $SIGNAL_TYPE = $SMART ] && [ $MEASURE_UPS -eq $FALSE ]
779 Echo "Measure-UPS INSTALLED : FALSE"
782 if [ $ROOT_USER -eq $TRUE ]
784 Echo "INSTALLING AS ROOT : TRUE"
786 Echo "INSTALLING AS ROOT : FALSE"
789 if [ $USE_TCP -eq $TRUE ]
791 Echo "TCP/IP Installed : TRUE"
793 Echo "TCP/IP Installed : FALSE"
796 if [ $RUN_COMMAND_FILES_AS_ROOT -eq $TRUE ]
798 Echo "RUN COMMAND FILES AS ROOT : TRUE"
800 Echo "RUN COMMAND FILES AS ROOT : FALSE"
803 if [ $SEND_EMAIL_AS_ROOT -eq $TRUE ]
805 Echo "SEND EMAIL AS ROOT : TRUE"
807 Echo "SEND EMAIL AS ROOT : FALSE"
813 #######################################################################
814 # Allow customer to verify or quit
815 #######################################################################
817 IsYNLoop "Are the above selections correct?"
821 Echo "Please rerun the $INST_SCRIPT_NAME script"
822 Echo "No actions taken."
828 #############################################################################
829 # Check for binary compatibility
830 #############################################################################
832 Echo "Checking for binary compatibility..."
835 if [ ! -r machine_def ]
838 Echo "INSTALL FAILURE: There does not appear to be binary compatibilty between"
839 Echo "installed product and this machine"
844 Echo "binary compatibility VERIFIED"
849 #############################################################################
850 # Verify that chosen serial device is a valid tty
851 #############################################################################
853 ./ttycheck "$INST_TTY"
857 Echo "$INST_TTY verified as a valid tty"
862 Echo "WARNING: $INST_TTY does not appear to be a valid tty"
869 Echo "WARNING: General tty verification failure."
876 #############################################################################
877 # See what we can determine about the port.
878 #############################################################################
879 if [ $SKIP_PORT_VERIFICATION -eq $FALSE ]
881 Echo "The following Port validations for $INST_TTY may take a few moments...."
883 if [ $VALID_TTY -eq $TRUE ]
885 ./portcheck "$INST_TTY"
890 Echo "$INST_TTY appears to be a modem control port"
896 Echo "$INST_TTY appears to be a local control port"
902 Echo "Could not determine port type!"
909 if [ $IS_MODEM_PORT -eq $TRUE ] && [ $SIGNAL_TYPE = $SMART ]
913 Echo "WARNING: Port must be configured for local control in order to work with a"
914 Echo "\"Smart\" Signaling UPS"
920 if [ $IS_LOCAL_PORT -eq $TRUE ] && [ $SIGNAL_TYPE = $SIMPLE ]
924 Echo "WARNING: Port must be configured for modem control in order to work with a"
925 Echo "\"Simple\" Signaling UPS"
936 #############################################################################
937 # Modify OS system files for shutdown
938 #############################################################################
939 modify_files=`grep -q -s -c POWERCHUTE /etc/rc.d/init.d/halt`
940 if [ "$modify_files" -eq 0 ]
942 Echo "making backup copy of shutdown files..."
943 cp $SHUTDOWN_FILE $SHUTDOWN_FILE.tmp
944 cp $SHUTDOWN_FILE $SHUTDOWN_FILE_BACKUP
946 Echo "modifying shutdown files...."
948 if [ -r $SHUTDOWN_FILE.tmp ]
954 Echo "Unable to find temp file $SHUTDOWN_FILE.tmp. Quitting."
958 sed "/$SHUTDOWN_SEARCH_STRING/ a\\
959 $SHUTDOWN_COMMAND_STRING" $SHUTDOWN_FILE.tmp > $SHUTDOWN_FILE
960 if [ ! -r $SHUTDOWN_FILE ]
964 Echo "Error writing $SHUTDOWN_FILE! Original can be found in\n$INSTALL_PATH/$SYSFILES_BACKUP_REPOSITORY. Quitting."
968 rm -f $SHUTDOWN_FILE.tmp
970 chmod 754 $SHUTDOWN_FILE
974 #############################################################################
975 # Verify we can communicate with UPS
976 #############################################################################
977 cd /usr/lib/powerchute
980 if [ $VALID_TTY -eq $TRUE ] && [ $IS_MODEM_PORT -eq $FALSE ]
982 while [ $RETRY -eq $TRUE ]
984 ./upswrite $INST_TTY $CABLE_TYPE verify
990 Echo "UPS communications on $INST_TTY verified"
996 Echo "WARNING: Could not communicate with device on $INST_TTY."
997 Echo "Check that the communications cable is attached properly to both the device"
998 Echo "and the serial port."
1001 Echo "NOTE: Though the $FULL_PROD_NAME installation is complete, if you "
1002 Echo "quit before verifying communications, the application may not work properly"
1005 while [ $VALID_RE -eq $FALSE ]
1007 Echo "Do you wish to Exit or Retry communications? [R/E] \\c"
1015 COMM_VERIFIED=$FALSE
1024 elif [ $IS_LOCAL_PORT -eq $TRUE ]
1027 Echo "WARNING: Due to tty verification failure, the install"
1028 Echo "will be unable to test UPS communications."
1034 #############################################################################
1035 # Modify the powerchute.ini file
1036 #############################################################################
1037 cd /usr/lib/powerchute
1038 rm -f /tmp/temp_ini.in
1039 rm -f /tmp/temp_ini.out
1040 cp powerchute.ini_templ /tmp/temp_ini.in
1041 cp /etc/powerchute.ini /etc/powerchute_ini.bak
1043 sed s!GSUB_TTY_HERE!$INST_TTY!g /tmp/temp_ini.in > /tmp/temp_ini.out
1045 sed s/GSUB_SIGTYPE_HERE/$SIGNAL_TYPE/g /tmp/temp_ini.in > /tmp/temp_ini.out
1047 if [ $MEASURE_UPS -eq $TRUE ]
1049 sed s/GSUB_MUPS_HERE/YES/g /tmp/temp_ini.in > /tmp/temp_ini.out
1051 sed s/GSUB_MUPS_HERE/NO/g /tmp/temp_ini.in > /tmp/temp_ini.out
1054 if [ $UI_MONO_COLOR_SCHEME -eq $TRUE ]
1056 sed "s/GSUB_UI_WARNCOLOR_HERE/$MONO_WARN_COLOR_STRING/g" /tmp/temp_ini.in > /tmp/temp_ini.out
1058 sed "/GSUB_UI_WARNCOLOR_HERE/d" /tmp/temp_ini.in > /tmp/temp_ini.out
1061 if [ $UI_MONO_COLOR_SCHEME -eq $TRUE ]
1063 sed "s/GSUB_UI_ERRCOLOR_HERE/$MONO_ERR_COLOR_STRING/g" /tmp/temp_ini.in > /tmp/temp_ini.out
1065 sed "/GSUB_UI_ERRCOLOR_HERE/d" /tmp/temp_ini.in > /tmp/temp_ini.out
1068 sed s!GSUB_ALLOWED_PORTS_HERE!$ALLOWED_PORT_NAMES!g /tmp/temp_ini.in > /tmp/temp_ini.out
1070 if [ $USE_TCP -eq $TRUE ]
1072 sed s/GSUB_USETCP_HERE/YES/g /tmp/temp_ini.in > /tmp/temp_ini.out
1074 sed s/GSUB_USETCP_HERE/NO/g /tmp/temp_ini.in > /tmp/temp_ini.out
1077 sed s/GSUB_CHANGE1_HERE/"$SYMSTR1"/g /tmp/temp_ini.in > /tmp/temp_ini.out
1079 sed s/GSUB_CHANGE2_HERE/"$SYMSTR2"/g /tmp/temp_ini.in > /tmp/temp_ini.out
1081 sed s/GSUB_TIMEOUT_HERE/"$SYMSTR13"/g /tmp/temp_ini.in > /tmp/temp_ini.out
1083 sed s/GSUB_ACTIONS_HERE/"$SYMSTR3"/g /tmp/temp_ini.in > /tmp/temp_ini.out
1085 if [ $RUN_COMMAND_FILES_AS_ROOT -eq $TRUE ]
1087 sed s/GSUB_COMMAND_FILES_AS_ROOT_HERE/YES/g /tmp/temp_ini.in > /tmp/temp_ini.out
1089 sed s/GSUB_COMMAND_FILES_AS_ROOT_HERE/NO/g /tmp/temp_ini.in > /tmp/temp_ini.out
1092 if [ $SEND_EMAIL_AS_ROOT -eq $TRUE ]
1094 sed s/GSUB_SEND_EMAIL_AS_ROOT_HERE/YES/g /tmp/temp_ini.in > /tmp/temp_ini.out
1096 sed s/GSUB_SEND_EMAIL_AS_ROOT_HERE/NO/g /tmp/temp_ini.in > /tmp/temp_ini.out
1099 if [ -n "$MODEM_PORT_NAME" ]
1101 sed s!GSUB_MODEM_PORT_NAME!$MODEM_PORT_NAME!g /tmp/temp_ini.in > /tmp/temp_ini.out
1103 sed s/GSUB_MODEM_PORT_NAME/""/g /tmp/temp_ini.in > /tmp/temp_ini.out
1106 sed s!GSUB_CABLE_TYPE_HERE!$CABLE_TYPE!g /tmp/temp_ini.in > /tmp/temp_ini.out
1108 if [ -n "$MODEM_ALLOWED_PORT_NAMES" ]
1110 sed s!GSUB_MODEM_ALLOWED_PORT_NAMES!$MODEM_ALLOWED_PORT_NAMES!g /tmp/temp_ini.in > /tmp/temp_ini.out
1112 sed s/GSUB_MODEM_ALLOWED_PORT_NAMES/""/g /tmp/temp_ini.in > /tmp/temp_ini.out
1115 cp -f /tmp/temp_ini.out /etc/powerchute.ini
1116 rm -f /tmp/temp_ini.in
1117 rm -f /tmp/temp_ini.out
1120 ############################################################################
1121 # Make EEPROM adjustments
1122 ############################################################################
1123 if [ $COMM_VERIFIED -eq $TRUE ] && [ $SIGNAL_TYPE = $SMART ]
1126 CheckEepromUps "p" $INST_TTY
1127 if [ "$?" -eq $TRUE ]
1131 Echo "Due to the amount of time it can take Unix platforms to shutdown,"
1132 Echo "it is sometimes necessary to increase the eeprom parameter UpsTurnOffDelay"
1133 Echo "within the UPS. This is in order to allow sufficient time for the"
1134 Echo "Operating System to shutdown completely."
1136 Echo "* Doing this is recommended for the Linux Operating System *"
1139 IsYNLoop "Do you wish to increment the UpsTurnOffDelay to its next highest\nvalue now?"
1140 if [ "$?" -eq $YES ]
1142 CheckDipSwitches $INST_TTY
1143 if [ "$?" -eq $TRUE ]
1145 Echo "Please wait.\\c"
1147 GetNextEepromValueGreaterThan "p" "20" $INST_TTY
1149 if [ "$next_value" -ne "-1" ]
1151 desired_val=$next_value
1155 GetCurrentEepromSetting "p" $INST_TTY
1157 if [ "$current_eeprom" -ne "-1" ]
1159 current_val="$current_eeprom"
1162 CycleUntilAcceptableValue "p" "$current_val" "$desired_val" "$INST_TTY"
1163 if [ "$?" -eq $TRUE ]
1167 Echo "UpsTurnOffDelay successfully set at $desired_val."
1172 Echo "Eeproms okay."
1176 ############################################################################
1177 # Add pwrchute user account
1178 ############################################################################
1179 if [ $USE_TCP -eq $TRUE ]
1181 pwrchute_exists=`grep -c pwrchute /etc/passwd`
1182 if [ $pwrchute_exists -eq 0 ]
1185 Echo "The PowerChute plus User Interface will prompt you for a password when you attempt"
1186 Echo "to connect to the upsd daemon running on this machine. This password is the"
1187 Echo "password of the pwrchute user account."
1189 Echo "Adding a pwrchute user account"
1190 /usr/sbin/useradd pwrchute
1191 Echo "Please set the password for the pwrchute user account."
1192 /usr/bin/passwd pwrchute
1196 ############################################################################
1198 ############################################################################
1201 Echo "$FULL_PROD_NAME Installation complete. You will need to reboot"
1202 Echo "in order to start the application"
1205 if [ $COMM_VERIFIED -eq $FALSE ]
1208 Echo "WARNING: Serial communications never verified, the installed product may"
1209 Echo "not work properly. You may want to try the following:"
1211 Echo " 1) Check that specified serial device exists."
1212 Echo " 2) Check the device configuration is appropriate for your UPS type"
1213 Echo " 3) Rebuild or create the serial device using the utility appropriate "
1214 Echo " for your system."