]> 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 74ea6e07e7863dae73857902f474929847c7143c..a099f0b1db276f49eaa1cb332b0926d0c15ea255 100644 (file)
@@ -1,56 +1,11 @@
-Index: rc.d/rc.sysinit
-===================================================================
---- rc.d/rc.sysinit    (.../tags/0.4.0.16)     (wersja 4664)
-+++ rc.d/rc.sysinit    (.../trunk)     (wersja 4664)
-@@ -106,6 +106,12 @@
-       /bin/dmesg -n $CONSOLE_LOGLEVEL
- fi
+--- 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}
  
-+if [ -f /etc/udev/udev.conf ];then
-+      . /etc/udev/udev.conf
-+fi
-+
-+[ -x /sbin/start_udev ] && run_cmd "Starting udev" /sbin/start_udev
-+      
- # /dev must be also mounted before everything but only if we want use them ;-)
- if is_yes "$MOUNT_DEVFS"; then
-       run_cmd "Mounting Device Filesystem" mount -n -t devfs /dev /dev
-@@ -741,10 +747,6 @@
- rm -rf /tmp/.X*-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/hsperfdata_* \
-       /tmp/kde-* /tmp/ksocket-* /tmp/mc-* /tmp/mcop-* /tmp/orbit-*  \
-       /tmp/scrollkeeper-*  /tmp/ssh-*
--# Make ICE directory
--mkdir -m 1777 -p /tmp/.ICE-unix > /dev/null 2>&1
--chown root:root /tmp/.ICE-unix
--restorecon /tmp/.ICE-unix > /dev/null 2>&1
+               # make nice level absolute, not to be dependant of nice level of shell where service started
+-              nice=$((nice-$(nice)))
++              nice=$(($nice - $(nice)))
  
- {
- # Clean up utmp/wtmp
-@@ -765,6 +767,12 @@
-       rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
- fi
-+# System protected dirs
-+mkdir -m 1777 -p /tmp/.ICE-unix > /dev/null 2>&1
-+chown root:root /tmp/.ICE-unix
-+restorecon /tmp/.ICE-unix > /dev/null 2>&1
-+
-+
- # Right, now turn on swap in case we swap to files
- swapon -a >/dev/null 2>&1
- run_cmd "Enabling swap space" /bin/true
-Index: sysconfig/interfaces/ifcfg-description
-===================================================================
---- sysconfig/interfaces/ifcfg-description     (.../tags/0.4.0.16)     (wersja 4664)
-+++ sysconfig/interfaces/ifcfg-description     (.../trunk)     (wersja 4664)
-@@ -6,8 +6,8 @@
-   from lowest value first. You need to set BOOTPRIO in _all_ your
-   ifcfg* files because if you won't do that only these interfaces
-   with BOOTPRIO variable will be configured. Use the same schema
--  when setting variable for example BOOTPRIO=numer
--  or BOOTPRIO="numer" because sorting is done by sort command.
-+  when setting variable for example BOOTPRIO=number
-+  or BOOTPRIO="number" because sorting is done by sort command.
- [ BOOTPROTO={none|bootp|dhcp|pump} ]
-   You can specify which dhcp client to use with the DHCP_CLIENT, if
+               if [ "$closefds" = 1 ]; then
+                       exec 1>&-
This page took 0.361398 seconds and 4 git commands to generate.