a32c32455ca9c181e9537d9d306dca9ec2d11e8e
[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 @@ -156,7 +156,7 @@
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 @@ -282,7 +282,7 @@
23
24 # misc pre-Pluto setup
25
26 - perform test -d `dirname $subsyslock` "&&" touch $subsyslock
27 + perform test -d `echo $subsyslock | sed -r 's/(^.*\/)(.*$)/\1/'` "&&" touch $subsyslock "&&" rm -f $subsyslock
28
29 manualconns
30