]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-quotation-marks.patch
- fixed my sed->awk modifications (now tested and work)
[packages/rc-scripts.git] / rc-scripts-quotation-marks.patch
1 Index: rc.d/init.d/functions
2 ===================================================================
3 --- rc.d/init.d/functions       (revision 3049)
4 +++ rc.d/init.d/functions       (revision 3062)
5 @@ -398,10 +398,8 @@
6                 limits="${SERVICE_LIMITS:-$DEFAULT_SERVICE_LIMITS}"
7  #      elif [ -n "`$SH -c 'echo ${.sh.version}' 2>/dev/null`" ]; then
8         fi
9 -       while echo "$limits" | grep -q '[^ ]'; do
10 -               ulimit `echo ${limits} | awk '/^ *-[^-]*-.*$/ {sub(/^[^-]*-/,"");sub(/-.*$/,"");sub(/^.*$/,"-&");}{print;}'
11 -               limits="`echo ${limits} | awk '/^ *-[^-]*-.*$/ {sub(/^[^-]*-[^-]*/,"");}{print;}'
12 -       done
13 +       
14 +       echo $limits|awk 'BEGIN {RS="-";} !/^$/ {system ("ulimit -" $0);}'
15  
16         # And start it up.
17         busy
This page took 0.025634 seconds and 3 git commands to generate.