#!/bin/bash curl -4 -s ip.rmz.io && echo ret4=$? curl -6 -s ip.rmz.io && echo ret6=$? exit $((ret4 && ret6))