opensim-tools

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 45  →  ?path2? @ 46
/lib/configure-spectacled-owl
@@ -23,23 +23,27 @@
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
if [ $? == "0" ]; then
USERNAME=`cat OpenSim.ini | grep vivox_admin_user | awk -F"[ \t]*[=][ \t]*" '{ print $2 }'`
TMP=`date +%s | sha1sum | awk '{ print $1 }'`
dialog --inputbox "Please enter your Vivox admin user: " 10 70 $USER 2> $TMP
if [ $? == "0" ]; then
USERNAME=`cat $TMP`
sed -i "s/vivox_admin_user *=.*/vivox_admin_user = $USERNAME/g" \
OpenSim.ini;
if [ ! -z $USERNAME ]; then
TMP=`date +%s | sha1sum | awk '{ print $1 }'`
dialog --inputbox "Please enter your Vivox admin user: " 10 70 $USER 2> $TMP
if [ $? == "0" ]; then
USERNAME=`cat $TMP`
sed -i "s/vivox_admin_user *=.*/vivox_admin_user = $USERNAME/g" \
OpenSim.ini;
fi
rm $TMP 2>/dev/null
fi
rm $TMP 2>/dev/null
PASSWORD=`cat OpenSim.ini | grep vivox_admin_password | awk -F"[ \t]*[=][ \t]*" '{ print $2 }'`
TMP=`date +%s | sha1sum | awk '{ print $1 }'`
dialog --inputbox "Please enter your Vivox admin passsword: " 10 70 $PASS 2> $TMP
if [ $? == "0" ]; then
PASSWORD=`cat $TMP`
sed -i "s/vivox_admin_password *=.*/vivox_admin_password = $PASSWORD/g" \
OpenSim.ini;
if [ ! -z $PASSWORD ]; then
TMP=`date +%s | sha1sum | awk '{ print $1 }'`
dialog --inputbox "Please enter your Vivox admin passsword: " 10 70 $PASS 2> $TMP
if [ $? == "0" ]; then
PASSWORD=`cat $TMP`
sed -i "s/vivox_admin_password *=.*/vivox_admin_password = $PASSWORD/g" \
OpenSim.ini;
fi
rm $TMP 2>/dev/null
fi
rm $TMP 2>/dev/null
fi
rm $TMP 2>/dev/null
popd