db91c158a97d5166640474d7e61b4cf5c6d72147
[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 +++ b/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 --- a/programs/_plutorun/_plutorun.in
16 +++ b/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 "${stderrlog%/*}"
23 then
24 echo Cannot write to directory to create \"$stderrlog\".
25 exit 1
26 --- a/programs/_realsetup/_realsetup.in
27 +++ b/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 + perfrom test -d "${subsyslock%/*}" "&&" touch $subsyslock "&&" rm -f $subsyslock
34
35 manualconns
36