]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/init.d/functions
Revert few pzurowski changes since they are broken even after fixing syntax.
[projects/rc-scripts.git] / rc.d / init.d / functions
index 0e90d01e9c9b77f0f7ab9d13e9788d3922a92ecf..16c8bf78bd2f30e809c8026765f428033323b2e1 100644 (file)
@@ -399,8 +399,8 @@ daemon()
 #      elif [ -n "`$SH -c 'echo ${.sh.version}' 2>/dev/null`" ]; then
        fi
        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
 
        # And start it up.
This page took 0.050286 seconds and 4 git commands to generate.