Skip to content

Commit

Permalink
odhcp6c: support dhcpv6 hotplug
Browse files Browse the repository at this point in the history
  • Loading branch information
QiuSimons committed Aug 21, 2023
1 parent 46e291b commit 1de1a3a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions PATCH/odhcp6c/1002-odhcp6c-support-dhcpv6-hotplug.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From b774d35a8945e7a517bfa76d10216def4d7f470c Mon Sep 17 00:00:00 2001
From: Jianhui Zhao <jianhui.zhao@gl-inet.com>
Date: Fri, 26 May 2023 15:18:27 +0800
Subject: [PATCH] odhcp6c: support dhcpv6 hotplug

Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
---
package/network/ipv6/odhcp6c/files/dhcpv6.script | 1 +
1 file changed, 1 insertion(+)

diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script
index b1a99ed986..0d295afa52 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.script
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script
@@ -133,6 +133,7 @@ setup_interface () {

if [ -z "$gw" -o "$duplicate" = 1 ]; then
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid"
+ env -i ACTION="ifup" INTERFACE="$INTERFACE" DEVICE="$DEVICE" ADDR="$addr" MASK="$mask" "GW"="$gw" METRIC="$metric" VALID="$valid" /sbin/hotplug-call dhcpv6
else
for prefix in $PREFIXES $ADDRESSES; do
local paddr="${prefix%%,*}"
--
2.34.1

1 change: 1 addition & 0 deletions SCRIPTS/02_prepare_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ cp -rf ../lede_pkg/net/frp ./package/new/frp
#cp -rf ../lede_luci/applications/luci-app-ipsec-server ./package/new/luci-app-ipsec-server
# IPv6 兼容助手
cp -rf ../lede/package/lean/ipv6-helper ./package/new/ipv6-helper
patch -p1 <../PATCH/odhcp6c/1002-odhcp6c-support-dhcpv6-hotplug.patch
# 京东签到 By Jerrykuku
#git clone --depth 1 https://github.com/jerrykuku/node-request.git package/new/node-request
#git clone --depth 1 https://github.com/jerrykuku/luci-app-jd-dailybonus.git package/new/luci-app-jd-dailybonus
Expand Down

0 comments on commit 1de1a3a

Please sign in to comment.