opensim-tools – Diff between revs 46 and 47

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 46 Rev 47
Line 23... Line 23...
23 dialog --yesno "The Spectacled Owl can be configured to support voice via Vivox (http://support.vivox.com/opensim/). If you wish to configure voice, you need to visit the Vivox website and request a username and a password. if you have received the settings from Vivox, would you like to configure voice now?" 10 70 23 dialog --yesno "The Spectacled Owl can be configured to support voice via Vivox (http://support.vivox.com/opensim/). If you wish to configure voice, you need to visit the Vivox website and request a username and a password. if you have received the settings from Vivox, would you like to configure voice now?" 10 70
24 if [ $? == "0" ]; then 24 if [ $? == "0" ]; then
25 USERNAME=`cat OpenSim.ini | grep vivox_admin_user | awk -F"[ \t]*[=][ \t]*" '{ print $2 }'` 25 USERNAME=`cat OpenSim.ini | grep vivox_admin_user | awk -F"[ \t]*[=][ \t]*" '{ print $2 }'`
26 if [ ! -z $USERNAME ]; then 26 if [ ! -z $USERNAME ]; then
27 TMP=`date +%s | sha1sum | awk '{ print $1 }'` 27 TMP=`date +%s | sha1sum | awk '{ print $1 }'`
28 dialog --inputbox "Please enter your Vivox admin user: " 10 70 $USER 2> $TMP 28 dialog --inputbox "Please enter your Vivox admin user: " 10 70 $USERNAME 2> $TMP
29 if [ $? == "0" ]; then 29 if [ $? == "0" ]; then
30 USERNAME=`cat $TMP` 30 USERNAME=`cat $TMP`
31 sed -i "s/vivox_admin_user *=.*/vivox_admin_user = $USERNAME/g" \ 31 sed -i "s/vivox_admin_user *=.*/vivox_admin_user = $USERNAME/g" \
32 OpenSim.ini; 32 OpenSim.ini;
33 fi 33 fi
34 rm $TMP 2>/dev/null 34 rm $TMP 2>/dev/null
35 fi 35 fi
36 PASSWORD=`cat OpenSim.ini | grep vivox_admin_password | awk -F"[ \t]*[=][ \t]*" '{ print $2 }'` 36 PASSWORD=`cat OpenSim.ini | grep vivox_admin_password | awk -F"[ \t]*[=][ \t]*" '{ print $2 }'`
37 if [ ! -z $PASSWORD ]; then 37 if [ ! -z $PASSWORD ]; then
38 TMP=`date +%s | sha1sum | awk '{ print $1 }'` 38 TMP=`date +%s | sha1sum | awk '{ print $1 }'`
39 dialog --inputbox "Please enter your Vivox admin passsword: " 10 70 $PASS 2> $TMP 39 dialog --inputbox "Please enter your Vivox admin passsword: " 10 70 $PASSWORD 2> $TMP
40 if [ $? == "0" ]; then 40 if [ $? == "0" ]; then
41 PASSWORD=`cat $TMP` 41 PASSWORD=`cat $TMP`
42 sed -i "s/vivox_admin_password *=.*/vivox_admin_password = $PASSWORD/g" \ 42 sed -i "s/vivox_admin_password *=.*/vivox_admin_password = $PASSWORD/g" \
43 OpenSim.ini; 43 OpenSim.ini;
44 fi 44 fi