Disable dns lookups for irc on mesh
This commit is contained in:
parent
2c776bc635
commit
2f02b7394a
|
@ -405,6 +405,9 @@ ZERONET_REPO='https://github.com/HelloZeroNet/ZeroNet.git'
|
|||
# Default diffie-hellman key length in bits
|
||||
DH_KEYLENGTH=1024
|
||||
|
||||
# repo for atheros AR9271 wifi driver
|
||||
ATHEROS_WIFI_REPO='https://github.com/qca/open-ath9k-htc-firmware.git'
|
||||
|
||||
function show_help {
|
||||
echo ''
|
||||
echo 'freedombone -c [configuration file]'
|
||||
|
@ -1668,7 +1671,7 @@ function install_atheros_wifi {
|
|||
fi
|
||||
cd $INSTALL_DIR
|
||||
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
|
||||
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
||||
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/;Name = TheOper/Name = $MY_USERNAME/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
|
||||
|
||||
# keep the daemon running
|
||||
|
|
Loading…
Reference in New Issue