From: Ian Kelling Date: Tue, 8 Feb 2022 23:20:58 +0000 (-0500) Subject: fixes, remove cruft to try to fix unstable wireless X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=53b932c6f960b7f4a9bd2171cdfd630304f15fd8;p=automated-distro-installer fixes, remove cruft to try to fix unstable wireless --- diff --git a/wrt-setup b/wrt-setup index 0d856ad..1e0d636 100755 --- a/wrt-setup +++ b/wrt-setup @@ -70,7 +70,7 @@ fi echo "$0: h=$h" # todo: ecdsa key not working with dropbear -cat ~/.ssh/{h,home}.pub | ssh $h dd of=/etc/dropbear/authorized_keys 2>/dev/null +cat ~/.ssh/{h,hrsa,home}.pub | ssh $h dd of=/etc/dropbear/authorized_keys 2>/dev/null scp /a/work/libremanage/libremanage /a/bin/fai/wrt-init /a/bin/fai/wrt-setup-local /a/bin/cedit/cedit $h:/usr/bin # relay is built for openwrt 18.06.2, r7676-cddd7b4c77 diff --git a/wrt-setup-local b/wrt-setup-local index cb8b940..cda21df 100755 --- a/wrt-setup-local +++ b/wrt-setup-local @@ -22,7 +22,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR usage() { cat </dev/null; then + # todo, I also enabled irqbalance, didnt script it though + # https://forum.openwrt.org/t/wrt1900acs-wifi-issue-after-upgrade-from-19-07-to-21-02-vacuum-cleaner-legacy-rate-support/113311/28 + cat >/etc/rc.local <<'EOF' +echo "0" >> /sys/kernel/debug/ieee80211/phy0/mwlwifi/tx_amsdu +echo "0" >> /sys/kernel/debug/ieee80211/phy1/mwlwifi/tx_amsdu +exit 0 +EOF + chmod +x /etc/rc.local + /etc/rc.local + uset wireless.radio0.disassoc_low_ack 0 + uset wireless.radio1.disassoc_low_ack 0 +fi +case $HOSTNAME in + cmc) + # found with https://openwrt.org/docs/guide-user/network/wifi/iwchan + uset wireless.radio0.channel 11 + ;; +esac # usb, screen, relay are for libremanage @@ -355,10 +379,12 @@ fi # # relay package temporarily disabled # /root/relay_1.0-1_mips_24kc.ipk -v pi kmod-usb-storage block-mount kmod-fs-ext4 nfs-kernel-server \ - tcpdump openvpn-openssl adblock libusb-compat \ - screen kmod-usb-serial-cp210x kmod-usb-serial-ftdi rsync\ - unbound-daemon unbound-checkconf +v pi tcpdump screen rsync unbound-daemon unbound-checkconf \ + kmod-usb-storage block-mount kmod-fs-ext4 +# nfs-kernel-server \ + # openvpn-openssl adblock libusb-compat \ + # kmod-usb-serial-cp210x kmod-usb-serial-ftdi \ + cat >/etc/libremanage.conf </etc/crontabs/root <<'EOF' -0 06 * * * /etc/init.d/adblock reload -EOF +# # disabled for now. i want to selectively enable it +# # for specific hosts. +# if [[ $(uci get adblock.global.adb_enabled) != 0 ]]; then +# v uci set adblock.global.adb_enabled=0 +# uci commit adblock +# /etc/init.d/adblock restart +# fi +# # https://github.com/openwrt/packages/tree/master/net/adblock/files +# cat >/etc/crontabs/root <<'EOF' +# 0 06 * * * /etc/init.d/adblock reload +# EOF # useful: http://wiki.openwrt.org/doc/howto/dhcp.dnsmasq @@ -1086,11 +1111,11 @@ dhcp-host=b4:75:0e:94:29:ca,set:switch9429ca,$l.251,switch9429ca # template # dhcp-host=,$l., -# Just leave the tftp server up even if we aren't doing pxe boot. -# It has no sensitive info. -enable-tftp=br-lan -tftp-root=/mnt/usb/tftpboot -dhcp-optsfile=/etc/dnsmasq-dhcpopts.conf +# uncomment to do tftpboot. openwrt snapshot from 2022-01, seems like it cant +# access /mnt/usb/tftpboot due to some jail or sandbox thing +#enable-tftp=br-lan +#tftp-root=/mnt/usb/tftpboot +#dhcp-optsfile=/etc/dnsmasq-dhcpopts.conf #log-queries=extra EOF