fix: add default route to network config
This commit is contained in:
parent
372f2e251a
commit
d63c30285e
1 changed files with 5 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ network:
|
|||
ethernets:
|
||||
eth0:
|
||||
addresses: [$NET_ADDR]
|
||||
routes:
|
||||
- to: default
|
||||
via: $DEFAULT_GATEWAY
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
@ -87,10 +90,12 @@ EOF
|
|||
read -e -p "Compressed Image file: " IMG_FILE
|
||||
read -e -p "SD Card: " SD_CARD
|
||||
read -e -p "IP-Address with prefix (comma separated): " NET_ADDR
|
||||
read -e -p "Default Gateway: " DEFAULT_GATEWAY
|
||||
read -e -p "Username: " username
|
||||
read -s -p "Password: " userpw
|
||||
echo
|
||||
read -e -p "SSH-Key: " ssh_key
|
||||
echo
|
||||
|
||||
flash_sd "$IMG_FILE" "$SD_CARD"
|
||||
enlarge_partition "$SD_CARD"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue