Skip to content

Instantly share code, notes, and snippets.

View stintel's full-sized avatar
💭
Renovating my house

Stijn Tintel stintel

💭
Renovating my house
View GitHub Profile
@stintel
stintel / mac.py
Last active September 20, 2023 12:13
bin/mac.py
#!/usr/bin/env python
from string import hexdigits
from sys import argv
OUIDB = '/usr/share/nmap/nmap-mac-prefixes'
def fmt_mac_three(m):
return f"{m[:4]}-{m[4:8]}-{m[8:13]}"
@stintel
stintel / stdin
Created November 24, 2021 16:34
stdin
diff --git a/state.c b/state.c
index fb81248..bf7557f 100644
--- a/state.c
+++ b/state.c
@@ -224,6 +224,7 @@ void procd_shutdown(int event)
if (state >= STATE_SHUTDOWN)
return;
DEBUG(2, "Shutting down system with event %x\n", event);
+ service_stop_all();
reboot_event = event;
@stintel
stintel / 0002-realtek-fix-VLAN-tagging-on-RTL8390-and-RTL9300.patch
Created November 14, 2021 16:05
0002-realtek-fix-VLAN-tagging-on-RTL8390-and-RTL9300.patch
From 26d16b67ce7ef6ec48ec60797566922241b19af2 Mon Sep 17 00:00:00 2001
From: Stijn Tintel <[email protected]>
Date: Wed, 20 Oct 2021 21:57:55 +0300
Subject: [PATCH 2/2] realtek: fix VLAN tagging on RTL8390 and RTL9300
Signed-off-by: Stijn Tintel <[email protected]>
---
target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/dsa.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@stintel
stintel / stdin
Created April 25, 2021 19:58
stdin
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init
index 09a6e3e230f..b9786495513 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -38,7 +38,13 @@ write_lldpd_conf()
for iface in $ifaces; do
local ifname=""
if network_get_device ifname "$iface" || [ -e "/sys/class/net/$iface" ]; then
- append ifnames "${ifname:-$iface}" ","
+ if [ -d "/sys/class/net/$ifname/bridge/" ]; then
@stintel
stintel / targetlinuxmvebu64patches-4.4.520004-dsa-support-for-ar8236.patch
Created December 2, 2020 13:05
target/linux/mvebu64/patches-4.4.52/0004-dsa-support-for-ar8236.patch
--- a/drivers/net/dsa/Kconfig
+++ b/drivers/net/dsa/Kconfig
@@ -17,6 +17,13 @@ config NET_DSA_MV88E6XXX
This enables support for most of the Marvell 88E6xxx models of
Ethernet switch chips, except 88E6060.
+config NET_DSA_AR8236
+ tristate "Atheros AR8236 Ethernet switch chip support"
+ depends on NET_DSA
+ select NET_DSA_TAG_QCA
@stintel
stintel / feeds.conf.cds
Created November 28, 2019 11:06
feeds.conf.cds
src-git packages https://github.com/stintel/openwrt-packages.git;build
src-git luci https://github.com/openwrt/luci.git
src-git routing https://github.com/stintel/openwrt-routing.git
src-git telephony https://github.com/openwrt/telephony.git
src-git luci2 https://github.com/jow-/luci-ng.git
@stintel
stintel / OpenWrt-UAPACPRO.config
Last active March 6, 2020 00:37
OpenWrt-UAPACPRO.config
CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_generic=y
CONFIG_TARGET_ath79_generic_DEVICE_ubnt_unifiac-pro=y
CONFIG_BUILD_PATENTED=y
CONFIG_BUSYBOX_DEFAULT_PIE=y
CONFIG_DROPBEAR_ECC=y
CONFIG_DROPBEAR_ECC_FULL=y
CONFIG_ETHTOOL_PRETTY_DUMP=y
# CONFIG_FEED_stintel_wip is not set
CONFIG_IPK_FILES_CHECKSUMS=y
@stintel
stintel / OpenWrt-DAP2695.config
Last active March 5, 2020 23:42
OpenWrt-DAP2695.config
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DEVICE_dap-2695-a1=y
CONFIG_BUILD_PATENTED=y
CONFIG_BUSYBOX_DEFAULT_PIE=y
CONFIG_DROPBEAR_ECC=y
CONFIG_DROPBEAR_ECC_FULL=y
CONFIG_ETHTOOL_PRETTY_DUMP=y
# CONFIG_FEED_stintel_wip is not set
CONFIG_IPK_FILES_CHECKSUMS=y
@stintel
stintel / OpenWrt-APU2.config
Last active March 4, 2020 12:14
OpenWrt-APU2.config
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_Generic=y
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y
CONFIG_BUILD_PATENTED=y
CONFIG_DROPBEAR_ECC=y
CONFIG_DROPBEAR_ECC_FULL=y
CONFIG_ETHTOOL_PRETTY_DUMP=y
CONFIG_GRUB_TIMEOUT="2"
CONFIG_TARGET_brcm2708=y
CONFIG_TARGET_brcm2708_bcm2708=y
CONFIG_TARGET_brcm2708_bcm2708_DEVICE_rpi=y
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y
CONFIG_BUILD_PATENTED=y
CONFIG_DEBUG=y
CONFIG_DROPBEAR_ECC=y
CONFIG_DROPBEAR_ECC_FULL=y
CONFIG_GNUTLS_ALPN=y