mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 05:13:56 +08:00
🐶 Sync 2026-04-18 02:04:09
This commit is contained in:
1 parent
646d2ea077
commit
5eb416f3e2
207 files changed
+3148
-3426
No files matched your search
@@ -2,11 +2,10 @@
|
||||
# Copyright (C) 2008-2022 OpenWrt.org
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
PROG=/usr/bin/pppwn
|
||||
|
||||
start_service() {
|
||||
start() {
|
||||
config_load "pppwn"
|
||||
|
||||
config_get "port" "config" "port"
|
||||
@@ -17,12 +16,11 @@ start_service() {
|
||||
|
||||
[ "${enable}" -gt 0 ] || return
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG --interface $port --fw $fwver --stage1 "/etc/pppwn/stage1.bin" --stage2 "/etc/pppwn/stage2.bin" -a
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
$PROG --interface $port --fw $fwver --stage1 "/etc/pppwn/stage1.bin" --stage2 "/etc/pppwn/stage2.bin" -a > /var/log/pppwn.log &
|
||||
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "pppwn"
|
||||
}
|
||||
stop() {
|
||||
ps -w | grep -v "grep" | grep "$PROG" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
|
||||
echo "" > /var/log/pppwn.log
|
||||
}
|
||||
Binary file not shown.
Reference in new issue
Block a user