summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch
blob: fb58793a17153571d8ef7371ab67e46821926031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
From 44695f332e206e1db43d50163e1bce0bedf75fb7 Mon Sep 17 00:00:00 2001
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Date: Mon, 26 Nov 2018 14:53:09 +0800
Subject: [PATCH] Avoid bashisms in init scripts

Upstream-Status: Inappropriate

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>

Rebase to 2.03.01

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 scripts/blk_availability_init_red_hat.in | 4 ++--
 scripts/cmirrord_init_red_hat.in         | 4 ++--
 scripts/lvm2_lvmpolld_init_red_hat.in    | 4 ++--
 scripts/lvm2_monitoring_init_red_hat.in  | 4 ++--
 scripts/lvm2_monitoring_init_rhel4       | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in
index 347c39574..b2e9cf932 100644
--- a/scripts/blk_availability_init_red_hat.in
+++ b/scripts/blk_availability_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Copyright (C) 2012-2017 Red Hat, Inc. All rights reserved.
 #
@@ -51,6 +51,6 @@ case "$1" in
   status)
 	;;
   *)
-	echo $"Usage: $0 {start|stop|status}"
+	echo "Usage: $0 {start|stop|status}"
 	;;
 esac
diff --git a/scripts/cmirrord_init_red_hat.in b/scripts/cmirrord_init_red_hat.in
index c82f8f547..a3a321d9c 100755
--- a/scripts/cmirrord_init_red_hat.in
+++ b/scripts/cmirrord_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # chkconfig: - 22 78
 # description: Starts and stops cmirrord
@@ -103,7 +103,7 @@ case "$1" in
 		;;
 
 	*)
-		echo $"Usage: $0 {start|stop|restart|status}"
+		echo "Usage: $0 {start|stop|restart|status}"
 		;;
 esac
 
diff --git a/scripts/lvm2_lvmpolld_init_red_hat.in b/scripts/lvm2_lvmpolld_init_red_hat.in
index 176ff5dcb..825f6ad84 100644
--- a/scripts/lvm2_lvmpolld_init_red_hat.in
+++ b/scripts/lvm2_lvmpolld_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Copyright (C) 2015 Red Hat, Inc. All rights reserved.
 #
@@ -105,7 +105,7 @@ case "$1" in
 	;;
 
   *)
-	echo $"Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}"
+	echo "Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}"
 	;;
 esac
 
diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in
index 95e4125a0..dff89cd38 100644
--- a/scripts/lvm2_monitoring_init_red_hat.in
+++ b/scripts/lvm2_monitoring_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
 #
@@ -127,7 +127,7 @@ case "$1" in
 	;;
 
   *)
-	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
+	echo "Usage: $0 {start|stop|restart|status|force-stop}"
 	;;
 esac
 
diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4
index 8eb06c509..2e8d0f71e 100644
--- a/scripts/lvm2_monitoring_init_rhel4
+++ b/scripts/lvm2_monitoring_init_rhel4
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Copyright (C) 2007 Red Hat, Inc. All rights reserved.
 #
@@ -93,7 +93,7 @@ case "$1" in
 	;;
 
   *)
-	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
+	echo "Usage: $0 {start|stop|restart|status|force-stop}"
 	;;
 esac