[Buildroot] [git commit branch/2022.11.x] package/openvpn: get rid of -e in S60openvpn shebang

Peter Korsgaard peter at korsgaard.com
Tue Feb 14 16:16:28 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=dd7ca9147a0afc04a6d0d9346141245878b39339
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.11.x

The -e switch makes the script terminate on error from
start-stop-daemon, rendering unreachable the code that checks the exit
status.

There is no need in the -e switch in the first place either, as the
script takes care of errors handling.

Signed-off-by: Sergey Organov <sorganov at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 28ca1da23433d58112304c191c319ac11edc5d77)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/openvpn/S60openvpn | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/openvpn/S60openvpn b/package/openvpn/S60openvpn
index f097cf11ec..00156c80db 100644
--- a/package/openvpn/S60openvpn
+++ b/package/openvpn/S60openvpn
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
 #
 # Original version by Robert Leslie
 # <rob at mars.org>, edited by iwj and cs



More information about the buildroot mailing list