Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
USER=thomas
#IFNAME=enp164s0u2
IFNAME=enp164s0u1
firewall-cmd --add-port=67/udp
#/sbin/ip addr replace 192.168.10.2/24 dev $IFNAME
#/sbin/ip link set dev $IFNAME up
/usr/sbin/dnsmasq --user=$USER \
--no-daemon \
--listen-address 192.168.10.2 \
@thosmos
thosmos / rc.button_reset
Created August 6, 2024 02:14
Althea router reset button behavior
#!/bin/sh
. /lib/functions.sh
OVERLAY="$( grep ' /overlay ' /proc/mounts )"
case "$ACTION" in
timeout)
. /etc/diag.sh
set_state failsafe