Files
2026-10-02 21:34:01 +04:00

17 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