#!/bin/bash bashtrue=0 bashfalse=1 function on_redhat_vpn() { url="http://password.corp.redhat.com/newca.crt" curl -s --max-time 5 $url > /dev/null return $? } function on_redhat_vpn_test() { if on_redhat_vpn; then echo "on Red Hat VPN"; else echo "not on Red Hat VPN"; fi }