1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/0000-omr-update
2024-09-20 15:22:14 +02:00

22 lines
476 B
Bash
Executable file

#!/bin/sh
cd /etc/uci-defaults || exit 0
# Keep dnsmasq ipset with old method
rm -f /etc/uci-defaults/50-dnsmasq-migrate-ipset.sh
uci -q del dhcp.@dnsmasq[0].ipset
source /etc/os-release
files="$(ls /etc/uci-defaults/)"
[ -n "$files" ] && {
mkdir -p /usr/share/omr-update
if [ "$(grep rom /etc/mtab)" = "" ]; then
rm /usr/share/omr-update/*
cp /etc/uci-defaults/* /usr/share/omr-update
fi
}
# Do not keep /etc/nftables.d
rm -f /lib/upgrade/keep.d/firewall4
exit 0