Disable dns lookups for irc on mesh

This commit is contained in:
Bob Mottram 2015-08-21 17:18:19 +01:00
parent 2c776bc635
commit 2f02b7394a
1 changed files with 8 additions and 1 deletions

View File

@ -405,6 +405,9 @@ ZERONET_REPO='https://github.com/HelloZeroNet/ZeroNet.git'
# Default diffie-hellman key length in bits # Default diffie-hellman key length in bits
DH_KEYLENGTH=1024 DH_KEYLENGTH=1024
# repo for atheros AR9271 wifi driver
ATHEROS_WIFI_REPO='https://github.com/qca/open-ath9k-htc-firmware.git'
function show_help { function show_help {
echo '' echo ''
echo 'freedombone -c [configuration file]' echo 'freedombone -c [configuration file]'
@ -1668,7 +1671,7 @@ function install_atheros_wifi {
fi fi
cd $INSTALL_DIR cd $INSTALL_DIR
if [ ! -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then if [ ! -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then
git clone https://github.com/qca/open-ath9k-htc-firmware.git git clone $ATHEROS_WIFI_REPO
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
exit 74283 exit 74283
@ -8421,6 +8424,10 @@ function install_irc_server {
sed -i 's/;RequireAuthPing = no/RequireAuthPing = no/g' /etc/ngircd/ngircd.conf sed -i 's/;RequireAuthPing = no/RequireAuthPing = no/g' /etc/ngircd/ngircd.conf
sed -i "s/;Name = TheOper/Name = $MY_USERNAME/g" /etc/ngircd/ngircd.conf sed -i "s/;Name = TheOper/Name = $MY_USERNAME/g" /etc/ngircd/ngircd.conf
sed -i "s/;Password = ThePwd/Password = $IRC_OPERATOR_PASSWORD/g" /etc/ngircd/ngircd.conf sed -i "s/;Password = ThePwd/Password = $IRC_OPERATOR_PASSWORD/g" /etc/ngircd/ngircd.conf
# If we are on a mesh then DNS is not available
if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
sed -i "s/;DNS =.*/DNS = no/g" /etc/ngircd/ngircd.conf
fi
service ngircd start service ngircd start
# keep the daemon running # keep the daemon running