]> TLD Linux GIT Repositories - packages/rc-scripts.git/commitdiff
- fix network init script
authorMarcin Krol <hawk@tld-linux.org>
Sun, 22 Jul 2018 23:28:38 +0000 (23:28 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 22 Jul 2018 23:28:38 +0000 (23:28 +0000)
misc_fixes.patch

index 66e3a275fd9d4b976956ca3237e7dc7266e0808e..2f76edf568b38b6bb9f9394c8927a5f5868cd9c4 100644 (file)
@@ -1,13 +1,23 @@
-diff --git a/lib/functions b/lib/functions
-index ced6e97..fac4c46 100644
---- a/lib/functions
-+++ b/lib/functions
-@@ -607,7 +607,7 @@ _daemon_set_ulimits() {
+diff -ur rc-scripts-0.5.1.orig/rc.d/init.d/network rc-scripts-0.5.1/rc.d/init.d/network
+--- rc-scripts-0.5.1.orig/rc.d/init.d/network  2018-07-11 21:54:22.000000000 +0000
++++ rc-scripts-0.5.1/rc.d/init.d/network       2018-07-22 23:26:49.256418466 +0000
+@@ -168,7 +168,7 @@
+                               DEVICE=""; ONBOOT=""; USERS=""; . "$i" 2>/dev/null
+                               [ "${DEVICE:+set}" != "set" ] && continue
+                               [ ${USERS:-no} != no ] && continue
+-                              is_yes [ ${ONBOOT:-no} && echo "${i##*/ifcfg-}"
++                              is_yes ${ONBOOT:-no} && echo "${i##*/ifcfg-}"
+                       done
+               `
  
- # A function to start a program (now it's useful on read-only filesystem too)
- daemon() {
--      local errors="" prog="" end="" waitname="" waittime=""
-+      local errors="" prog="" end="" waitname="" waittime=0
-       local exit_code=0
-       local nice=$SERVICE_RUN_NICE_LEVEL
-       local fork user closefds redirfds pidfile makepid chdir=/
+diff -ur rc-scripts-0.5.1.orig/sysconfig/system rc-scripts-0.5.1/sysconfig/system
+--- rc-scripts-0.5.1.orig/sysconfig/system     2018-07-11 21:54:22.000000000 +0000
++++ rc-scripts-0.5.1/sysconfig/system  2018-07-22 23:26:23.805419983 +0000
+@@ -13,7 +13,6 @@
+ CONSOLE_LOGLEVEL=1
+ # On errors (when system is starting) run sulogin instead of shell ?
+-# This option disables debuginitrd=sh in geninitrd as well.
+ RUN_SULOGIN_ON_ERR=yes
+ # Default run nice level for all services if $SERVICE_RUN_NICE_LEVEL is not