Skip to contentSkip to conversation

busybox: fix stop -vs- start typo in rcS script

PATCH In review Andre McCurdy 2 participants 2 messages Jan 26, 2016 – Jan 27, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: fix stop -vs- start typo in rcS script

Also make the rcS and rcK comments match the code.

---
 meta/recipes-core/busybox/files/rcK | 5 +++--
 meta/recipes-core/busybox/files/rcS | 7 ++++---
 2 files changed, 7 insertions(+), 5 deletions(-)
meta/recipes-core/busybox/files/rcK +3 -2
index 050086e..f8a63e1 100644
@@ -1,9 +1,10 @@
 #!/bin/sh
 
-# Stop all init scripts in /etc/init.d
-# executing them in reversed numerical order.
+# Stop all init scripts in /etc/rc6.d
+# executing them in numerical order.
 #
 for i in /etc/rc6.d/K??*; do
+
      # Ignore dangling symlinks (if any).
      [ ! -f "$i" ] && continue
 
meta/recipes-core/busybox/files/rcS +4 -3
index d18c26b..bb03eb6 100644
@@ -1,10 +1,11 @@
 #!/bin/sh
 
-# Stop all init scripts in /etc/init.d
-# executing them in reversed numerical order.
+# Start all init scripts in /etc/rcS.d and /etc/rc5.d
+# executing them in numerical order.
 #
 
 for i in /etc/rcS.d/S??* /etc/rc5.d/S??* ;do
+
      # Ignore dangling symlinks (if any).
      [ ! -f "$i" ] && continue
 
@@ -13,7 +14,7 @@ for i in /etc/rcS.d/S??* /etc/rc5.d/S??* ;do
 	    # Source shell script for speed.
 	    (
 		trap - INT QUIT TSTP
-		set stop
+		set start
 		. $i
 	    )
 	    ;;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 5 lines · Andre McCurdy

Also make the rcS and rcK comments match the code.

thanks looks ok.

Quoted 58 lines

---
meta/recipes-core/busybox/files/rcK | 5 +++--
meta/recipes-core/busybox/files/rcS | 7 ++++---

2 files changed, 7 insertions(+), 5 deletions(-)
meta/recipes-core/busybox/files/rcK +2 -2
index 050086e..f8a63e1 100644
@@ -1,9 +1,10 @@
 #!/bin/sh
 
-# Stop all init scripts in /etc/init.d
-# executing them in reversed numerical order.
+# Stop all init scripts in /etc/rc6.d
+# executing them in numerical order.
 #

for i in /etc/rc6.d/K??*; do

meta/recipes-core/busybox/files/rcK +1 -0
+
     # Ignore dangling symlinks (if any).
     [ ! -f "$i" ] && continue
meta/recipes-core/busybox/files/rcS +2 -2
index d18c26b..bb03eb6 100644
@@ -1,10 +1,11 @@
 #!/bin/sh
 
-# Stop all init scripts in /etc/init.d
-# executing them in reversed numerical order.
+# Start all init scripts in /etc/rcS.d and /etc/rc5.d
+# executing them in numerical order.
 #
 

for i in /etc/rcS.d/S??* /etc/rc5.d/S??* ;do

meta/recipes-core/busybox/files/rcS +2 -2
+
     # Ignore dangling symlinks (if any).
     [ ! -f "$i" ] && continue
@@ -13,7 +14,7 @@ for i in /etc/rcS.d/S??* /etc/rc5.d/S??* ;do
 	    # Source shell script for speed.
 	    (
 		trap - INT QUIT TSTP
-		set stop
+		set start
 		. $i
 	    )
 	    ;;
--

1.9.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core