#!/bin/sh # # Generate s6 network definitions header_eb() { echo '#!/bin/execlineb -P' } header_if() { local if="${1:?missing if}" echo "define INTERFACE $if" } header_addr() { local addr="${1:?missing addr}" echo "define ADDR $addr" } header_vlan() { local vlan="${1:?missing vlan}" local parent="${2:?missing parent}" echo "define VLAN $vlan" echo "define PARENT $parent" } header_vrf() { local vrf="${1:?missing vrf}" echo "define VRF $vrf" } header_path() { cat <