소스 검색

Disable dns lookups for irc on mesh

Bob Mottram 9 년 전
부모
커밋
2f02b7394a
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8
    1
      src/freedombone

+ 8
- 1
src/freedombone 파일 보기

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