🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

@@ -0,0 +1 @@
+29
View File
@@ -0,0 +1,29 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2018 Lienol <lienol@qq.com>
START=99
STOP=16
setup_service() {
local section="$1"
config_get enabled "$section" enabled
[ "$enabled" -eq 0 ] && return 0
config_get server_interface "$section" server_interface
config_get client_interface "$section" client_interface
[ -n "$server_interface" ] || return 0
[ -n "$client_interface" ] || return 0
is_run=$(ps | grep "/usr/sbin/pppoe-relay -S $server_interface -C $client_interface" | grep -v "grep")
[ -z "$is_run" ] && {
/usr/sbin/pppoe-relay -S $server_interface -C $client_interface
}
}
start() {
config_load pppoe-relay
config_foreach setup_service service
}
stop() {
kill -9 `pidof pppoe-relay | sed "s/$$//g"`
}
@@ -0,0 +1,11 @@
{
"luci-app-pppoe-relay": {
"description": "Grant UCI access for luci-app-pppoe-relay",
"read": {
"uci": [ "pppoe-relay" ]
},
"write": {
"uci": [ "pppoe-relay" ]
}
}
}
@@ -0,0 +1,4 @@
{
"config": "pppoe-relay",
"init": "pppoe-relay"
}