vi /etc/hotplug.d/dhcp/99-notify.sh
#!/bin/ash
echo "$(date);$ACTION;$HOSTNAME;$MACADDR;$IPADDR;$DNSMASQ_CLIENT_ID;$DNSMASQ_LEASE_EXPIRES" >> /tmp/info_dhcp.log
#!/bin/sh
umask go=
sysupgrade -b /tmp/backup/backup-${HOSTNAME}-$(date +%F).tar.gz
Wifi Driver bug and workaround
Int the latest version of OpenWrt starting with 19.x there seems to be an issue with the 5Ghz Wifi driver and 3rd radio that causes issues and drops. To work around it a kernel module needs to be removed and the wifi setting reset so only 2 radios are used.
After a standard installation before setting up Wifi follow these steps, but see the link below to the issue in Github first:
wifi config > /etc/config/wireless
reboot```
[https://github.com/openwrt/openwrt/issues/9956 issue 9956]
## Enable WPS
opkg remove wpad-basic-wolfssl
opkg install wpad-wolfssl hostapd-utils
reboot
The option to enable WPS will be available in newtwork/wireless/<selected interface>/interface configuration/wireless security