opensim-tools

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 44  →  ?path2? @ 45
/lib/configure-spectacled-owl
@@ -14,11 +14,11 @@
# Set hostname
HOSTNAME=`cat /etc/hostname`
TMP=`date +%s | sha1sum | awk '{ print $1 }'`
dialog --inputbox "The Spectacled Owl uses IP addresses during its boot cycle. This option allows you to override the IP address with a hostname. If you do have an externally reachable fully-qualified hostname, please enter it here: " 10 70 $VIVOX_USER 2> $TMP
dialog --inputbox "The Spectacled Owl uses IP addresses during its boot cycle. This option allows you to override the IP address with a hostname. If you do have an externally reachable fully-qualified hostname, please enter it here: " 10 70 $HOSTNAME 2> $TMP
if [ $? == "0" ]; then
cat $TMP > /etc/hostname
fi
rm $TMP
rm $TMP 2>/dev/null
# Set Vivox
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
@@ -30,7 +30,7 @@
sed -i "s/vivox_admin_user *=.*/vivox_admin_user = $USERNAME/g" \
OpenSim.ini;
fi
rm $TMP
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
@@ -39,7 +39,7 @@
sed -i "s/vivox_admin_password *=.*/vivox_admin_password = $PASSWORD/g" \
OpenSim.ini;
fi
rm $TMP
rm $TMP 2>/dev/null
fi
rm $TMP
rm $TMP 2>/dev/null
popd