Skip to content

Instantly share code, notes, and snippets.

View Septrum101's full-sized avatar

Spetrum Septrum101

View GitHub Profile
# ================================================================
# Cloudflare DDNS Update Script
# Firmware: RouterOS v7.22+ (also works on v7.23)
# Features: In-memory only | No temp files | Auto fetch zone/record IDs
# Config: Only cfToken and cfDomain required
# ================================================================
# ============ User Config (modify these) =============
:global cfDDNSToken "your_cloudflare_api_token";
:global cfDDNSDomain "ddns.example.com";
:global cfDDNSZoneLabels 2;
@Septrum101
Septrum101 / openwrt-hc5611.patch
Created November 18, 2022 16:32 — forked from nanpuyue/openwrt-hc5611.patch
Add support for HiWiFi HC5611 for OpenWrt
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 37630cde66..f90ed13d12 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -205,6 +205,9 @@ hc5661a)
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
set_wifi_led "$boardname:blue:wlan2g"
;;
+hc5611)
+ ucidef_set_led_default "system" "system" "$boardname:green:system" "1"