| #!/bin/bash |
| |
| remote=$ONOS_USER@$OCN |
| |
| ssh -t $remote " |
| |
| set -euxo pipefail |
| |
| sudo killall -9 dhclient || true |
| sudo killall -9 zebra || true |
| sudo killall -9 bgpd || true |
| sudo killall -9 dhcpd || true |
| sudo killall -9 screen || true |
| |
| # Preconfigure isc-dhcp-relay for headless install |
| echo isc-dhcp-relay isc-dhcp-relay/interfaces string "" | sudo debconf-set-selections |
| echo isc-dhcp-relay isc-dhcp-relay/options string "" | sudo debconf-set-selections |
| echo isc-dhcp-relay isc-dhcp-relay/servers string "" | sudo debconf-set-selections |
| " |