pve/extra_scripts/install_ifupdown2.sh

16 lines
307 B
Bash
Raw Normal View History

2023-06-25 19:12:31 +08:00
#!/bin/bash
# from
# https://github.com/spiritLHLS/pve
2023-07-31 08:19:03 +08:00
# 2023.07.31
2023-06-25 19:12:31 +08:00
# 安装ifupdown2
apt-get install -y ifupdown2
2023-07-31 08:19:03 +08:00
echo "1" > "/usr/local/bin/ifupdown2_installed.txt"
2023-06-25 19:12:31 +08:00
# 删除Systemd服务
systemctl disable ifupdown2-install.service
rm /etc/systemd/system/ifupdown2-install.service
# 删除自身
rm $0