diff --git a/provision-pi.sh b/provision-pi.sh index 7922de5..efeefd0 100755 --- a/provision-pi.sh +++ b/provision-pi.sh @@ -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"