mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 19:44:38 +08:00
Update build_nat_network.sh
This commit is contained in:
parent
790f963344
commit
ff4f2f34db
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ fi
|
|||
IPV4=$(ip -4 addr show | grep global | awk '{print $2}' | cut -d '/' -f1 | head -n 1)
|
||||
|
||||
# 查询信息
|
||||
apt-get install lshw -y
|
||||
interface=$(lshw -C network | awk '/logical name:/{print $3}' | head -1)
|
||||
if [ -z "$interface" ]; then
|
||||
interface="eth0"
|
||||
|
|
Loading…
Reference in a new issue