update 2026-05-10 09:48:30

This commit is contained in:
action committed 2026-05-10 09:48:30 +08:00
1 parent 95ac96413e
commit 0b362674f1
6244 files changed
+2992248

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh /etc/rc.common
START=96
USE_PROCD=1
OAFD_BIN="/usr/bin/oafd"
FEATURE_FILE="/tmp/feature.cfg"
stop_service(){
killall -9 oafd
}
start_service(){
test -f $FEATURE_FILE &&{
rm $FEATURE_FILE
}
if [ ! -f /etc/appfilter/feature.cfg ]; then
cp /etc/appfilter/feature_cn.cfg /etc/appfilter/feature.cfg
fi
hnat.sh 1
ln -s /etc/appfilter/feature.cfg $FEATURE_FILE
procd_open_instance
procd_set_param respawn 60 5 5
procd_set_param stderr 1
procd_set_param command "$OAFD_BIN"
procd_close_instance
}