summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch')
-rw-r--r--meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch b/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
new file mode 100644
index 0000000000..85bc234a27
--- /dev/null
+++ b/meta/recipes-core/update-rc.d/update-rc.d/fix-to-handle-priority-numbers-correctly.patch
@@ -0,0 +1,28 @@
1Upstream-Status: Pending
2
3Fix to handle priority numbers correctly.
4Previously, if the priority number is '08' or '09', for example,
5the script cannot handle them correctly as these numbers are treated
6as octal numbers.
7
8Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
9---
10 update-rc.d | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/update-rc.d b/update-rc.d
14index ec50d15..c70b859 100644
15--- a/update-rc.d
16+++ b/update-rc.d
17@@ -205,7 +205,7 @@ case $1 in
18 exit 1
19 fi
20 shift
21- NN=`printf %02d $1`
22+ NN=`printf %02d $(expr $1 + 0)`
23 shift
24 while [ "x$1" != "x." ]; do
25 if [ $# -eq 0 ]; then
26--
271.7.9.5
28