X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2F_updown_espmark%2F_updown_espmark;h=74de0722d2ec0991d62b69278d08af05891b6bcb;hp=b9ae6ed256d5280206890f6667979e5859ddea75;hb=872176d350d16d6c6785f11ec366de3b13efcf74;hpb=8af25c56af21a1756f9d6a323c8c5338fb802856 diff --git a/src/_updown_espmark/_updown_espmark b/src/_updown_espmark/_updown_espmark index b9ae6ed..74de072 100644 --- a/src/_updown_espmark/_updown_espmark +++ b/src/_updown_espmark/_updown_espmark @@ -199,15 +199,12 @@ doroute() { if [ -z "$PLUTO_MY_SOURCEIP" ] then - if [ -f /etc/sysconfig/defaultsource ] - then - . /etc/sysconfig/defaultsource - fi - - if [ -f /etc/conf.d/defaultsource ] - then - . /etc/conf.d/defaultsource - fi + for dir in /etc/sysconfig /etc/conf.d; do + if [ -f "$dir/defaultsource" ] + then + . "$dir/defaultsource" + fi + done if [ -n "$DEFAULTSOURCE" ] then