#!/bin/bash if [ $(ip -6 route | grep -c ^default) -eq 0 ]; then exit; fi apt install socat || exit cat > /etc/systemd/system/socat\@.service <