1
0
forked from brl/citadel
citadel/meta-citadel/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch

118 lines
3.1 KiB
Diff
Raw Permalink Normal View History

2019-01-15 17:34:27 +00:00
From ea66faf68c93735edb1f2691cd7364b8cab83fef 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 1/3] Avoid bashisms in init scripts
2018-01-18 23:19:47 +00:00
Upstream-Status: Inappropriate
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
2019-01-15 17:34:27 +00:00
Rebase to 2.03.01
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2018-01-18 23:19:47 +00:00
---
2019-01-15 17:34:27 +00:00
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(-)
2018-01-18 23:19:47 +00:00
diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in
2019-01-15 17:34:27 +00:00
index 347c395..b2e9cf9 100644
2018-01-18 23:19:47 +00:00
--- a/scripts/blk_availability_init_red_hat.in
+++ b/scripts/blk_availability_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
2019-01-15 17:34:27 +00:00
# Copyright (C) 2012-2017 Red Hat, Inc. All rights reserved.
2018-01-18 23:19:47 +00:00
#
2019-01-15 17:34:27 +00:00
@@ -51,6 +51,6 @@ case "$1" in
2018-01-18 23:19:47 +00:00
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
2019-01-15 17:34:27 +00:00
index c82f8f5..a3a321d 100755
2018-01-18 23:19:47 +00:00
--- 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
2019-01-15 17:34:27 +00:00
@@ -103,7 +103,7 @@ case "$1" in
2018-01-18 23:19:47 +00:00
;;
*)
- 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
2019-01-15 17:34:27 +00:00
index 176ff5d..825f6ad 100644
2018-01-18 23:19:47 +00:00
--- 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.
#
2019-01-15 17:34:27 +00:00
@@ -105,7 +105,7 @@ case "$1" in
2018-01-18 23:19:47 +00:00
;;
*)
- 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
2019-01-15 17:34:27 +00:00
index 95e4125..dff89cd 100644
2018-01-18 23:19:47 +00:00
--- 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.
#
2019-01-15 17:34:27 +00:00
@@ -127,7 +127,7 @@ case "$1" in
2018-01-18 23:19:47 +00:00
;;
*)
- 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 8eb06c5..2e8d0f7 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
--
2019-01-15 17:34:27 +00:00
2.7.4
2018-01-18 23:19:47 +00:00