#!/bin/sh push_na_rule(){ cat < $2 push_home_rule $1>> $2 elif [ "$server_location" = "EU" ] && [ "$client_location" != "EU" ]; then # push EU routing rule + home network rule to client push_eu_rule > $2 push_home_rule $1 >> $2 else # push only home network rule to client push_home_rule $1> $2 fi ;; "home") push_home_rule $1> $2 ;; "all") push_all_site_rule $1> $2 ;; esac