core: 修复 debian10 下无法安装 nslookup

This commit is contained in:
bin456789 2023-08-27 23:53:53 +08:00
parent 5c5b2ae81c
commit 347cd9ccc8
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -526,10 +526,10 @@ install_pkg() {
pkg=
case $cmd in
unsquashfs) command -v zypper && pkg=squashfs || pkg=squashfs-tools ;;
lsmem) pkg=util-linux ;;
lsmem | lsblk) pkg=util-linux ;;
nslookup | dig)
{ command -v apk && pkg="bind-tools"; } ||
{ command -v apt && pkg="bind9-dnsutils"; } ||
{ command -v apt && pkg="dnsutils"; } ||
{ command -v pacman && pkg="bind"; } ||
{ command -v yum dnf zypper && pkg="bind-utils"; }
;;