|
|
|
|
405
|
# Default diffie-hellman key length in bits
|
405
|
# Default diffie-hellman key length in bits
|
406
|
DH_KEYLENGTH=1024
|
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
|
function show_help {
|
411
|
function show_help {
|
409
|
echo ''
|
412
|
echo ''
|
410
|
echo 'freedombone -c [configuration file]'
|
413
|
echo 'freedombone -c [configuration file]'
|
|
|
|
|
1668
|
fi
|
1671
|
fi
|
1669
|
cd $INSTALL_DIR
|
1672
|
cd $INSTALL_DIR
|
1670
|
if [ ! -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then
|
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
|
if [ ! "$?" = "0" ]; then
|
1675
|
if [ ! "$?" = "0" ]; then
|
1673
|
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
1676
|
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
1674
|
exit 74283
|
1677
|
exit 74283
|
|
|
|
|
8421
|
sed -i 's/;RequireAuthPing = no/RequireAuthPing = no/g' /etc/ngircd/ngircd.conf
|
8424
|
sed -i 's/;RequireAuthPing = no/RequireAuthPing = no/g' /etc/ngircd/ngircd.conf
|
8422
|
sed -i "s/;Name = TheOper/Name = $MY_USERNAME/g" /etc/ngircd/ngircd.conf
|
8425
|
sed -i "s/;Name = TheOper/Name = $MY_USERNAME/g" /etc/ngircd/ngircd.conf
|
8423
|
sed -i "s/;Password = ThePwd/Password = $IRC_OPERATOR_PASSWORD/g" /etc/ngircd/ngircd.conf
|
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
|
service ngircd start
|
8431
|
service ngircd start
|
8425
|
|
8432
|
|
8426
|
# keep the daemon running
|
8433
|
# keep the daemon running
|