eafbd9926dacdf2283a2a7a5789d353fd2023a83
[openwrt/svn-archive/archive.git] / net / openswan / patches / 110-scripts.patch
1 ---
2 programs/_plutorun/_plutorun.in | 2 +-
3 programs/_realsetup/_realsetup.in | 2 +-
4 programs/loggerfix | 5 +++++
5 3 files changed, 7 insertions(+), 2 deletions(-)
6
7 --- /dev/null
8 +++ openswan-2.6.29/programs/loggerfix
9 @@ -0,0 +1,5 @@
10 +#!/bin/sh
11 +# use filename instead of /dev/null to log, but dont log to flash or ram
12 +# pref. log to nfs mount
13 +echo "$*" >> /dev/null
14 +exit 0
15 --- openswan-2.6.29.orig/programs/_plutorun/_plutorun.in
16 +++ openswan-2.6.29/programs/_plutorun/_plutorun.in
17 @@ -155,7 +155,7 @@ then
18 exit 1
19 fi
20 else
21 - if test ! -w "`dirname $stderrlog`"
22 + if test ! -w "`echo $stderrlog | sed -r 's/(^.*\/)(.*$)/\1/'`"
23 then
24 echo Cannot write to directory to create \"$stderrlog\".
25 exit 1
26 --- openswan-2.6.29.orig/programs/_realsetup/_realsetup.in
27 +++ openswan-2.6.29/programs/_realsetup/_realsetup.in
28 @@ -290,7 +290,7 @@ case "$1" in
29
30 # misc pre-Pluto setup
31
32 - perform test -d $subsysdir "&&" touch $subsyslock
33 + rm test -d `echo $subsyslock | sed -r 's/(^.*\/)(.*$)/\1/'` "&&" touch $subsyslock "&&" rm -f $subsyslock
34
35 manualconns
36