1 2 3 4 5 6
[Unit] Description=Test for PrivateNetwork [Service] ExecStart=/bin/sh -c 'i=$(ip link | grep ": " | grep -v lo); echo $i; exit $(test -z $i)' PrivateNetwork=yes