Skip to content

Instantly share code, notes, and snippets.

View stangri's full-sized avatar

Stan Grishin stangri

View GitHub Profile
@stangri
stangri / Makefile
Created February 10, 2024 13:29
messh11sd makefile
# SPDX-License-Identifier: GPL-2.0-only
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# Copyright (C) 2022-2023 BlueWave Projects and Services <licence@blue-wave.net>
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mesh11sd
@stangri
stangri / gist:2a891e34572f3d8d40479b15e080bdce
Last active February 25, 2024 22:55
Using PIA WG scripts on OpenWrt
opkg update; opkg install git git-http;
pia_update() {
local i iface config
local host port fw_reload_flag
local fw_network="$(uci -q get firewall.@zone[1].network)"
if [ -z "$(opkg list-installed git)" ] || [ -z "$(opkg list-installed git-http)" ]; then
opkg update
opg install git git-http
fi
cd /root/
@stangri
stangri / pbr
Created November 7, 2022 18:25
/etc/init.d/pbr
#!/bin/sh /etc/rc.common
# Copyright 2020-2022 Stan Grishin (stangri@melmac.ca)
# shellcheck disable=SC1091,SC2018,SC2019,SC3043,SC3057,SC3060
# sysctl net.ipv4.conf.default.rp_filter=1
# sysctl net.ipv4.conf.all.rp_filter=1
# shellcheck disable=SC2034
START=94
# shellcheck disable=SC2034