]> git.pld-linux.org Git - packages/rc-scripts.git/blobdiff - rc-scripts-svn.patch
- fix nice calc for ksh
[packages/rc-scripts.git] / rc-scripts-svn.patch
index 0280dc1015e9b23840bc3e0eb539308093ddeb82..a099f0b1db276f49eaa1cb332b0926d0c15ea255 100644 (file)
@@ -1,19 +1,11 @@
-Index: sysconfig/network-scripts/functions.network
-===================================================================
---- sysconfig/network-scripts/functions.network        (wersja 12211)
-+++ sysconfig/network-scripts/functions.network        (kopia robocza)
-@@ -370,8 +370,12 @@
+--- lib/functions      2011-12-14 13:23:27.000000000 +0200
++++ lib/functions      2011-12-14 19:16:08.333233967 +0200
+@@ -643,7 +643,7 @@
+               nice=${nice:-0}
  
- modprobe_net()
- {
--      if is_yes "$IPV6_NETWORKING" && is_module "ipv6"; then
--              _modprobe single ipv6
-+      if is_yes "$IPV6_NETWORKING"
-+              if is_module "ipv6"; then
-+                      _modprobe single ipv6
-+              fi
-+      elif [ -d /proc/sys/net/ipv6 ]; then
-+              sysctl -w net.ipv6.conf.all.disable_ipv6=0
-       fi
+               # make nice level absolute, not to be dependant of nice level of shell where service started
+-              nice=$((nice-$(nice)))
++              nice=$(($nice - $(nice)))
  
-       if is_yes "$IPX" && is_module "ipx"; then
+               if [ "$closefds" = 1 ]; then
+                       exec 1>&-
This page took 0.127066 seconds and 4 git commands to generate.