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