Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37827732
en ru br
Репозитории ALT
S:5.9.11-alt1
5.1: 4.3.7-alt1.M51.1
4.1: 4.2.17-alt0.M41.1
4.0: 4.2.17-alt0.M40.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: strongswan

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: strongswan-4.2.10-alt-shreq.patch
Скачать


diff -Naur strongswan-4.2.10-orig/src/_updown/_updown.in strongswan-4.2.10/src/_updown/_updown.in
--- strongswan-4.2.10-orig/src/_updown/_updown.in	2008-12-23 08:24:19 +0200
+++ strongswan-4.2.10/src/_updown/_updown.in	2009-01-10 13:00:33 +0200
@@ -207,15 +207,12 @@
 
 	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
diff -Naur strongswan-4.2.10-orig/src/_updown_espmark/_updown_espmark strongswan-4.2.10/src/_updown_espmark/_updown_espmark
--- strongswan-4.2.10-orig/src/_updown_espmark/_updown_espmark	2008-12-23 08:24:05 +0200
+++ strongswan-4.2.10/src/_updown_espmark/_updown_espmark	2009-01-10 13:00:55 +0200
@@ -201,15 +201,12 @@
 
 	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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin