-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patches: change patches to be "git am" compatible
- Loading branch information
1 parent
559cf96
commit 3237490
Showing
15 changed files
with
236 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
commit 1dd4c2929696797625709537bc51f46f00999b6d | ||
Author: Sven Roederer <[email protected]> | ||
From: Sven Roederer <[email protected]> | ||
Date: Tue May 3 11:31:49 2016 +0200 | ||
|
||
ramips: add target for Nexx WT3020-images | ||
Subject: ramips: add target for Nexx WT3020-images | ||
|
||
diff --git a/target/linux/ramips/mt7620/profiles/nexx.mk b/target/linux/ramips/mt7620/profiles/nexx.mk | ||
new file mode 100644 | ||
|
@@ -27,3 +25,7 @@ index 0000000..9c668c5 | |
+ Support for Nexx WT3020-series | ||
+endef | ||
+$(eval $(call Profile,WT3020)) | ||
-- | ||
2.20.1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
From: template <nomail@local> | ||
Date: Fri, 6 Sep 2019 08:29:50 +0000 | ||
Subject: banner-info | ||
|
||
--- | ||
|
||
|
||
--- lede/package/base-files/files/etc/banner 2017-12-10 21:27:21.352612551 +0100 | ||
+++ /tmp/banner 2017-12-10 21:19:20.000000000 +0100 | ||
+++ new/package/base-files/files/etc/banner 2017-12-10 21:19:20.000000000 +0100 | ||
@@ -1,8 +1,20 @@ | ||
- _______ ________ __ | ||
- | |.-----.-----.-----.| | | |.----.| |_ | ||
|
@@ -28,3 +35,7 @@ | |
+ For questions write a mail to <[email protected]> | ||
+ or check https://berlin.freifunk.net/contact for our weekly meetings. | ||
+ | ||
-- | ||
2.20.1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting | ||
=================================================================== | ||
--- openwrt.orig/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting | ||
+++ openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting | ||
From f717dc06d33edaf7b6304f15842ceea86066a923 Mon Sep 17 00:00:00 2001 | ||
From: Sven Roederer <[email protected]> | ||
Date: Wed, 20 Nov 2019 22:44:02 +0100 | ||
Subject: [PATCH] policy-routing: modify default to berlin-specific version | ||
|
||
--- | ||
.../package/freifunk-policyrouting/Makefile | 2 +- | ||
.../files/etc/config/freifunk-policyrouting | 6 +- | ||
.../etc/hotplug.d/iface/30-policyrouting | 90 +++++++-------- | ||
.../files/etc/init.d/freifunk-policyrouting | 105 +++++++++++++++--- | ||
4 files changed, 132 insertions(+), 71 deletions(-) | ||
|
||
diff --git a/contrib/package/freifunk-policyrouting/Makefile b/contrib/package/freifunk-policyrouting/Makefile | ||
index a9301cef3..3a92224ff 100644 | ||
--- a/contrib/package/freifunk-policyrouting/Makefile | ||
+++ b/contrib/package/freifunk-policyrouting/Makefile | ||
@@ -4,7 +4,7 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=freifunk-policyrouting | ||
-PKG_RELEASE:=6 | ||
+PKG_RELEASE:=7 | ||
|
||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) | ||
|
||
diff --git a/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting | ||
index 3dd2998f9..8a88d030c 100644 | ||
--- a/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting | ||
+++ b/contrib/package/freifunk-policyrouting/files/etc/config/freifunk-policyrouting | ||
@@ -1,7 +1,5 @@ | ||
- | ||
config 'settings' 'pr' | ||
|
@@ -12,10 +37,10 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/c | |
- | ||
+ option 'fallback' '0' | ||
+ option 'zones' 'freifunk' | ||
Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
=================================================================== | ||
--- openwrt.orig/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
+++ openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
diff --git a/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
index 327e8793b..fc5d80248 100644 | ||
--- a/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
+++ b/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
@@ -4,7 +4,7 @@ | ||
. /lib/functions/network.sh | ||
|
||
|
@@ -61,7 +86,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/h | |
$cmd | ||
if [ "$?" = 0 ]; then | ||
logger -s -t policyrouting "Add route: $cmd" | ||
@@ -33,7 +47,7 @@ if [ "$ACTION" = "ifup" ] && [ "$enable" | ||
@@ -33,7 +47,7 @@ if [ "$ACTION" = "ifup" ] && [ "$enable" = "1" ]; then | ||
fi | ||
|
||
if [ -n "$net6" ]; then | ||
|
@@ -70,7 +95,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/h | |
$cmd 2>&1 > /dev/null | ||
if [ "$?" = 0 ]; then | ||
logger -s -t policyrouting "Add route: $cmd (IPv6)" | ||
@@ -52,51 +66,29 @@ if [ "$ACTION" = "ifup" ] && [ "$enable" | ||
@@ -52,51 +66,29 @@ if [ "$ACTION" = "ifup" ] && [ "$enable" = "1" ]; then | ||
for n in $networks; do | ||
if [ "$INTERFACE" = "$n" ]; then | ||
for p in $proto; do | ||
|
@@ -141,10 +166,10 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/h | |
done | ||
fi | ||
done | ||
Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | ||
=================================================================== | ||
--- openwrt.orig/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | ||
+++ openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | ||
diff --git a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | ||
index 4c9172427..18c89f9bb 100755 | ||
--- a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | ||
+++ b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | ||
@@ -5,7 +5,7 @@ START=15 | ||
. /lib/functions.sh | ||
|
||
|
@@ -154,7 +179,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
[ -f /etc/config/olsrd ] && cfgs="olsrd" | ||
[ -f /etc/config/olsrd6 ] && cfgs="$cfgs olsrd6" | ||
|
||
@@ -92,6 +92,8 @@ add_lookup_rule() { | ||
@@ -103,6 +103,8 @@ add_lookup_rule() { | ||
name=${1/-/_} | ||
lookup=$2 | ||
prio=$3 | ||
|
@@ -163,7 +188,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
|
||
if [ -z "$name" -o -z "$lookup" -o -z "$prio" ]; then | ||
logger -s -t policyrouting "Missing parameters for add_rule!" | ||
@@ -102,21 +104,57 @@ add_lookup_rule() { | ||
@@ -113,21 +115,57 @@ add_lookup_rule() { | ||
else | ||
rule="rule" | ||
fi | ||
|
@@ -179,19 +204,19 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
+ done | ||
+ fi | ||
+} | ||
+ | ||
+add_action_rule() { | ||
+ name=${1/-/_} | ||
+ action=$2 | ||
+ prio=$3 | ||
+ in=$4 | ||
+ name=$name"_"${in:-allif}"_" | ||
|
||
- uci batch <<- EOF | ||
- set network.${name}ipv${p}="$rule" | ||
- set network.${name}ipv${p}.lookup="$lookup" | ||
- set network.${name}ipv${p}.priority="$prio" | ||
- EOF | ||
+add_action_rule() { | ||
+ name=${1/-/_} | ||
+ action=$2 | ||
+ prio=$3 | ||
+ in=$4 | ||
+ name=$name"_"${in:-allif}"_" | ||
+ | ||
+ if [ -z "$name" -o -z "$action" -o -z "$prio" ]; then | ||
+ logger -s -t policyrouting "Missing parameters for add_action!" | ||
+ else | ||
|
@@ -227,7 +252,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
} | ||
|
||
start() { | ||
@@ -124,7 +162,7 @@ start() { | ||
@@ -135,7 +173,7 @@ start() { | ||
logger -s -t policyrouting "Starting policy routing." | ||
rt_tables | ||
olsrd_intalltables | ||
|
@@ -236,7 +261,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
|
||
add_lookup_rule olsr olsr 1000 | ||
add_lookup_rule localnets localnets 2000 | ||
@@ -132,6 +170,26 @@ start() { | ||
@@ -143,6 +181,26 @@ start() { | ||
if [ "$fallback" = 1 ]; then | ||
add_lookup_rule olsr-default olsr-default 100000 | ||
fi | ||
|
@@ -263,7 +288,7 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
fi | ||
uci commit network | ||
if [ ! "$1" = "noservicerestart" ]; then | ||
@@ -142,20 +200,33 @@ start() { | ||
@@ -153,20 +211,33 @@ start() { | ||
stop() { | ||
logger -s -t policyrouting "Stopping policy routing" | ||
olsrd_rmtables | ||
|
@@ -306,15 +331,6 @@ Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/files/etc/i | |
- uci commit network | ||
start | ||
} | ||
Index: openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/Makefile | ||
=================================================================== | ||
--- openwrt.orig/feeds/freifunk/contrib/package/freifunk-policyrouting/Makefile | ||
+++ openwrt/feeds/freifunk/contrib/package/freifunk-policyrouting/Makefile | ||
@@ -4,7 +4,7 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=freifunk-policyrouting | ||
-PKG_RELEASE:=6 | ||
+PKG_RELEASE:=7 | ||
|
||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) | ||
-- | ||
2.20.1 | ||
|
21 changes: 21 additions & 0 deletions
21
patches/packages/freifunk/0703-policyrouting_fix_bypass-vpn.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
From: template <nomail@local> | ||
Date: Fri, 6 Sep 2019 08:29:50 +0000 | ||
Subject: policyrouting_fix_bypass-vpn | ||
|
||
--- | ||
|
||
|
||
--- freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
+++ freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
@@ -1,5 +1,7 @@ | ||
#!/bin/sh | ||
|
||
+[ "$INTERFACE" = wan ] && exit | ||
+ | ||
. /lib/functions.sh | ||
. /lib/functions/network.sh | ||
|
||
-- | ||
2.20.1 | ||
|
||
|
22 changes: 22 additions & 0 deletions
22
patches/packages/freifunk/0704-policyrouting_ignore_ffuplink.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From: template <nomail@local> | ||
Date: Fri, 6 Sep 2019 08:29:50 +0000 | ||
Subject: policyrouting_ignore_ffuplink | ||
|
||
--- | ||
|
||
|
||
diff -ur freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting luci/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting | ||
--- freifunk.orig/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting 2017-11-15 03:33:15.000000000 +0100 | ||
+++ freifunk/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting 2017-11-15 03:37:33.930137791 +0100 | ||
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
|
||
[ "$INTERFACE" = wan ] && exit | ||
+[ "$INTERFACE" = ffuplink ] && exit | ||
|
||
. /lib/functions.sh | ||
. /lib/functions/network.sh | ||
-- | ||
2.20.1 | ||
|
||
|
10 changes: 0 additions & 10 deletions
10
patches/packages/freifunk/703-policyrouting_fix_bypass-vpn.patch
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
patches/packages/freifunk/704-policyrouting_ignore_ffuplink.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.