diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0016-Remove-bash-dependency-for-nscd-init-script.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0016-Remove-bash-dependency-for-nscd-init-script.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0016-Remove-bash-dependency-for-nscd-init-script.patch b/meta/recipes-core/glibc/glibc/0016-Remove-bash-dependency-for-nscd-init-script.patch new file mode 100644 index 0000000000..1d9983b8e5 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0016-Remove-bash-dependency-for-nscd-init-script.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | From 69d378001adfe9a359d2f4b069c1ed2d36de4480 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 31 Dec 2015 14:33:02 -0800 | ||
4 | Subject: [PATCH 16/25] Remove bash dependency for nscd init script | ||
5 | |||
6 | The nscd init script uses #! /bin/bash but only really uses one bashism | ||
7 | (translated strings), so remove them and switch the shell to #!/bin/sh. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | nscd/nscd.init | 14 +++++++------- | ||
15 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
16 | |||
17 | diff --git a/nscd/nscd.init b/nscd/nscd.init | ||
18 | index a882da7d8b..b02986ec15 100644 | ||
19 | --- a/nscd/nscd.init | ||
20 | +++ b/nscd/nscd.init | ||
21 | @@ -1,4 +1,4 @@ | ||
22 | -#!/bin/bash | ||
23 | +#!/bin/sh | ||
24 | # | ||
25 | # nscd: Starts the Name Switch Cache Daemon | ||
26 | # | ||
27 | @@ -49,7 +49,7 @@ prog=nscd | ||
28 | start () { | ||
29 | [ -d /var/run/nscd ] || mkdir /var/run/nscd | ||
30 | [ -d /var/db/nscd ] || mkdir /var/db/nscd | ||
31 | - echo -n $"Starting $prog: " | ||
32 | + echo -n "Starting $prog: " | ||
33 | daemon /usr/sbin/nscd | ||
34 | RETVAL=$? | ||
35 | echo | ||
36 | @@ -58,7 +58,7 @@ start () { | ||
37 | } | ||
38 | |||
39 | stop () { | ||
40 | - echo -n $"Stopping $prog: " | ||
41 | + echo -n "Stopping $prog: " | ||
42 | /usr/sbin/nscd -K | ||
43 | RETVAL=$? | ||
44 | if [ $RETVAL -eq 0 ]; then | ||
45 | @@ -67,9 +67,9 @@ stop () { | ||
46 | # a non-privileged user | ||
47 | rm -f /var/run/nscd/nscd.pid | ||
48 | rm -f /var/run/nscd/socket | ||
49 | - success $"$prog shutdown" | ||
50 | + success "$prog shutdown" | ||
51 | else | ||
52 | - failure $"$prog shutdown" | ||
53 | + failure "$prog shutdown" | ||
54 | fi | ||
55 | echo | ||
56 | return $RETVAL | ||
57 | @@ -103,13 +103,13 @@ case "$1" in | ||
58 | RETVAL=$? | ||
59 | ;; | ||
60 | force-reload | reload) | ||
61 | - echo -n $"Reloading $prog: " | ||
62 | + echo -n "Reloading $prog: " | ||
63 | killproc /usr/sbin/nscd -HUP | ||
64 | RETVAL=$? | ||
65 | echo | ||
66 | ;; | ||
67 | *) | ||
68 | - echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}" | ||
69 | + echo "Usage: $0 {start|stop|status|restart|reload|condrestart}" | ||
70 | RETVAL=1 | ||
71 | ;; | ||
72 | esac | ||
73 | -- | ||
74 | 2.13.2 | ||
75 | |||