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