]> git.pld-linux.org Git - packages/rc-scripts.git/blobdiff - rc-scripts-quotation-marks.patch
- fixed my sed->awk modifications (now tested and work)
[packages/rc-scripts.git] / rc-scripts-quotation-marks.patch
index 137b71c42b386765cdd470d09025ea3fc11515f9..071c2fc16c3643272c83d3f4760dcc2b5dda102e 100644 (file)
@@ -1,15 +1,17 @@
-Index: functions
+Index: rc.d/init.d/functions
 ===================================================================
---- rc-scripts/rc.d/init.d/functions   (revision 3049)
-+++ rc-scripts/rc.d/init.d/functions   (working copy)
-@@ -399,8 +399,8 @@
+--- rc.d/init.d/functions      (revision 3049)
++++ rc.d/init.d/functions      (revision 3062)
+@@ -398,10 +398,8 @@
+               limits="${SERVICE_LIMITS:-$DEFAULT_SERVICE_LIMITS}"
  #     elif [ -n "`$SH -c 'echo ${.sh.version}' 2>/dev/null`" ]; then
        fi
-       while echo "$limits" | grep -q '[^ ]'; do
+-      while echo "$limits" | grep -q '[^ ]'; do
 -              ulimit `echo ${limits} | awk '/^ *-[^-]*-.*$/ {sub(/^[^-]*-/,"");sub(/-.*$/,"");sub(/^.*$/,"-&");}{print;}'
 -              limits="`echo ${limits} | awk '/^ *-[^-]*-.*$/ {sub(/^[^-]*-[^-]*/,"");}{print;}'
-+              ulimit `echo ${limits} | sed -e 's/^ *\(-[^-]*\)\(-.*\)\?$/\1/'`
-+              limits="`echo ${limits} | sed -e 's/^ *\(-[^-]*\)\(-.*\)\?$/\2/'`"
-       done
+-      done
++      
++      echo $limits|awk 'BEGIN {RS="-";} !/^$/ {system ("ulimit -" $0);}'
  
        # And start it up.
+       busy
This page took 0.026095 seconds and 4 git commands to generate.