#!/bin/sh # Nico Schottelius # 2020-06-14 set -e set -x if [ $# -ne 2 ]; then echo "$0 viwib-ip-address viwib-id" echo " viwib-ip-address: where to find the viwib" echo " viwib-id: number in decimal format" exit 1 fi viwib_ip=$1; shift id=$1; shift viwib_hostname=viwib${id} root_password=$(pwgen -1 32) # Save for sending to user # FIXME: future make this more easy / better to transfer echo $root_password > ${viwib_hostname}.rootpw cat <