Skip to content

Instantly share code, notes, and snippets.

View nxhack's full-sized avatar
😀
Happy hacking

Hirokazu MORIKAWA nxhack

😀
Happy hacking
View GitHub Profile
Index: backports-6.1-rc8/net/mac80211/sta_info.c
===================================================================
--- backports-6.1-rc8.orig/net/mac80211/sta_info.c
+++ backports-6.1-rc8/net/mac80211/sta_info.c
@@ -673,12 +673,13 @@ __sta_info_alloc(struct ieee80211_sub_if
}
sta->cparams.ce_threshold = CODEL_DISABLED_THRESHOLD;
- sta->cparams.target = MS2TIME(20);
- sta->cparams.interval = MS2TIME(100);
@nxhack
nxhack / fix-git-submodule.patch
Created August 16, 2017 05:38
OpenWrt 15.05 : git submodule command not work properly.
diff --git a/include/download.mk b/include/download.mk
index e518cce..614f76c 100644
--- a/include/download.mk
+++ b/include/download.mk
@@ -90,8 +90,9 @@ define DownloadMethod/git
cd $(TMP_DIR)/dl && \
rm -rf $(SUBDIR) && \
[ \! -d $(SUBDIR) ] && \
- git clone $(URL) $(SUBDIR) --recursive && \
- (cd $(SUBDIR) && git checkout $(VERSION) && git submodule update) && \
@nxhack
nxhack / MRAA.patch
Created July 21, 2017 07:17
LInkit7688 MARR ad hoc patch
diff --git a/libs/libmraa/Makefile b/libs/libmraa/Makefile
index 3e3202a..0ba5522 100644
--- a/feeds/packages/libs/libmraa/Makefile
+++ b/feeds/packages/libs/libmraa/Makefile
@@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libmraa
-PKG_VERSION:=0.8.0
+PKG_VERSION:=0.9.6
@nxhack
nxhack / mtk-linkit.patch
Last active October 31, 2018 14:06
LinkIt Smart 7688 mtk-linkit package patch
--- a/feeds/linkit/mtk-linkit/Makefile
+++ b/feeds/linkit/mtk-linkit/Makefile
@@ -13,10 +13,11 @@
HIDDEN:=1
DEPENDS:=@TARGET_ramips_mt7688_LinkIt7688 \
+gdbserver +curl +strace +coreutils +coreutils-stty \
- +avahi-nodbus-daemon +mountd +mjpg-streamer \
+ +avahi-dbus-daemon +libavahi-compat-libdnssd +mountd +mjpg-streamer \
+uhttpd +rpcd +rpcd-mod-iwinfo +git +git-http +samba36-server \
+python +python-pyserial +python-pip +hidapi \
#!/bin/sh
OLD_NODE_VERSION="4.4.6"
NEW_NODE_VERSION="4.4.7"
for file in `ls -1 node-*/Makefile`; do
sed -i -e s/^PKG_NODE_VERSION:=${OLD_NODE_VERSION}/PKG_NODE_VERSION:=${NEW_NODE_VERSION}/ ${file}
SED_PT_RELEASE=`egrep ^PKG_RELEASE ${file}|awk -F= '{printf("s/^PKG_RELEASE:=%s/PKG_RELEASE:=%s/",$2,$2+1)}'`
sed -i -e ${SED_PT_RELEASE} ${file}
done
@nxhack
nxhack / supervisord
Last active July 15, 2023 15:25
python supervisor startup script for OpenWrt-yun
#!/bin/sh /etc/rc.common
# python supervisor
# (init script for OpenWrt-yun)
# Original : https://github.com/Supervisor/initscripts/blob/master/slackware
START=99
STOP=49
# set HOME for ssh
HOME=/root