mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
Ipfireseeder: open also 35700 udp in external access.
Ipfireseeder: autorestart at reconnect.
This commit is contained in:
@@ -33,7 +33,7 @@ DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = ipfireseeder
|
||||
PAK_VER = 13
|
||||
PAK_VER = 14
|
||||
|
||||
DEPS = "rtorrent"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ case "${1}" in
|
||||
evaluate_retval
|
||||
if ! grep -q "35700:35700" /var/ipfire/xtaccess/config ; then
|
||||
echo "tcp,0.0.0.0/0,35700:35700,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
|
||||
echo "udp,0.0.0.0/0,35700:35700,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
|
||||
/usr/local/bin/setxtaccess
|
||||
fi
|
||||
;;
|
||||
|
||||
@@ -23,4 +23,7 @@
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
extract_files
|
||||
ln -s ../../ipfireseeder /etc/rc.d/init.d/networking/red.up/90-S-ipfireseeder
|
||||
ln -s ../../ipfireseeder /etc/rc.d/init.d/networking/red.down/01-K-ipfireseeder
|
||||
|
||||
start_service --delay 90 --background ${NAME}
|
||||
|
||||
@@ -31,4 +31,12 @@ cat /opt/pakfire/db/rootfiles/ipfireseeder | \
|
||||
mv /opt/pakfire/db/rootfiles/ipfireseeder.tmp \
|
||||
/opt/pakfire/db/rootfiles/ipfireseeder
|
||||
|
||||
grep -v "IPFireSeeder" /var/ipfire/xtaccess/config > /var/ipfire/xtaccess/config.tmp
|
||||
mv /var/ipfire/xtaccess/config.tmp /var/ipfire/xtaccess/config
|
||||
chown nobody:nobody /var/ipfire/xtaccess/config
|
||||
chmod 644 /var/ipfire/xtaccess/config
|
||||
|
||||
rm -f /etc/rc.d/rc?.d/???ipfireseeder
|
||||
rm -f /etc/rc.d/init.d/networking/red.*/??-?-ipfireseeder
|
||||
|
||||
remove_files
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
############################################################################
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
/etc/init.d/ipfireseeder stop
|
||||
./uninstall.sh
|
||||
./install.sh
|
||||
|
||||
Reference in New Issue
Block a user