16 lines
308 B
Bash
16 lines
308 B
Bash
#!/bin/sh
|
|||
|
|
set -e
|
||
|
|
|
||
|
|
state=/var/lib/xray-lists
|
||
|
|
|
||
|
|
if [ -e "$state/.reload-nft" ]; then
|
||
|
|
nft -c -f /etc/nftables.conf
|
||
|
|
nft -f /etc/nftables.conf
|
||
|
|
rm -f "$state/.reload-nft"
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [ -e "$state/.reload-dnsmasq" ]; then
|
||
|
|
dnsmasq --test
|
||
|
|
systemctl restart dnsmasq
|
||
|
|
rm -f "$state/.reload-dnsmasq"
|
||
|
|
fi
|