更新ifupdown2的判断方式

This commit is contained in:
spiritlhl 2023-08-04 14:41:56 +00:00
parent c9f7fbf6e1
commit 2126f2f28e

View file

@ -888,7 +888,7 @@ if [ ! -f "/usr/local/bin/reboot_pve.txt" ]; then
# prebuild_ifupdown2
# fi
fi
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"Exoscale Compute Platform"* ]] || ! command -v ifupdown; then
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"Exoscale Compute Platform"* ]] || ! dpkg -S ifupdown; then
prebuild_ifupdown2
fi
# # 特殊处理OVH