Skip to content

Commit 868d115

Browse files
author
bol-van
committed
uninstall_easy: offer to remove deps in openwrt
1 parent 6481f22 commit 868d115

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

common/installer.sh

+13
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,19 @@ check_prerequisites_linux()
682682
fi
683683
}
684684

685+
removable_pkgs_openwrt()
686+
{
687+
PKGS="iptables-mod-extra iptables-mod-nfqueue iptables-mod-filter iptables-mod-ipopt iptables-mod-conntrack-extra ip6tables-mod-nat ip6tables-extra kmod-nft-queue gzip coreutils-sort coreutils-sleep curl"
688+
}
689+
690+
remove_extra_pkgs_openwrt()
691+
{
692+
echo \* remove dependencies
693+
removable_pkgs_openwrt
694+
echo these packages may have been installed by install_easy.sh : $PKGS
695+
ask_yes_no N "do you want to remove them" && opkg remove --autoremove $PKGS
696+
}
697+
685698
check_prerequisites_openwrt()
686699
{
687700
echo \* checking prerequisites

docs/changes.txt

+3
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,6 @@ blockcheck: do not require root if SKIP_PKTWS=1
359359
v68:
360360

361361
readme.md : move russian version to markdown
362+
nfqws,tpws: use alternate $ sign for $<config_file>
363+
repo: binaries removed from repo. git actions binaries build in releases.
364+
uninstall_easy.sh: offer to remove dependencies in openwrt

uninstall_easy.sh

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ remove_openwrt()
7272
nft_del_table
7373
restart_openwrt_firewall
7474
crontab_del
75+
remove_extra_pkgs_openwrt
76+
echo
77+
echo to fully remove zapret : rm -r \"$ZAPRET_BASE\"
7578
}
7679

7780
remove_macos()

0 commit comments

Comments
 (0)