forked from pool/openvpn
Accepting request 888332 from home:cboltz:branches:network:vpn
- update 'rcopenvpn' to work without /etc/rc.status (boo#1185273) OBS-URL: https://build.opensuse.org/request/show/888332 OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=158
This commit is contained in:
parent
aa86a6a685
commit
2fcb1fff2d
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 25 19:24:56 UTC 2021 - Christian Boltz <suse-beta@cboltz.de>
|
||||||
|
|
||||||
|
- update 'rcopenvpn' to work without /etc/rc.status (boo#1185273)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 6 17:15:13 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Wed Jan 6 17:15:13 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ Name: openvpn
|
|||||||
Version: 2.4.10
|
Version: 2.4.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Full-featured SSL VPN solution using a TUN/TAP Interface
|
Summary: Full-featured SSL VPN solution using a TUN/TAP Interface
|
||||||
License: SUSE-GPL-2.0-with-openssl-exception AND LGPL-2.1-only
|
License: LGPL-2.1-only AND SUSE-GPL-2.0-with-openssl-exception
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
URL: http://openvpn.net/
|
URL: http://openvpn.net/
|
||||||
Source: https://swupdate.openvpn.org/community/releases/openvpn-%{version}.tar.xz
|
Source: https://swupdate.openvpn.org/community/releases/openvpn-%{version}.tar.xz
|
||||||
|
19
rcopenvpn
19
rcopenvpn
@ -1,13 +1,12 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
SYSTEMD_NO_WRAP=1 . /etc/rc.status
|
|
||||||
rc_reset
|
|
||||||
|
|
||||||
action=$1 ; shift
|
action=$1 ; shift
|
||||||
config=$1 ; shift
|
config=$1 ; shift
|
||||||
|
|
||||||
|
retcode=0
|
||||||
|
|
||||||
if test -n "$config" ; then
|
if test -n "$config" ; then
|
||||||
systemctl "${action}" "openvpn@${config}.service"
|
systemctl "${action}" "openvpn@${config}.service" || retcode=$?
|
||||||
else
|
else
|
||||||
case $action in
|
case $action in
|
||||||
status)
|
status)
|
||||||
@ -16,16 +15,14 @@ else
|
|||||||
for s in ${l#ConsistsOf=} ; do
|
for s in ${l#ConsistsOf=} ; do
|
||||||
case $s in
|
case $s in
|
||||||
openvpn@*.service)
|
openvpn@*.service)
|
||||||
systemctl status "$s"
|
systemctl status "$s" || retcode=$?
|
||||||
rc_check
|
|
||||||
((++n))
|
((++n))
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if test $n -gt 0 ; then
|
if test $n -eq 0 ; then
|
||||||
rc_status
|
echo 'unused' >&2
|
||||||
else
|
exit 3
|
||||||
rc_status -u
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -33,5 +30,5 @@ else
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
rc_exit
|
|
||||||
|
|
||||||
|
exit $retcode
|
||||||
|
Loading…
Reference in New Issue
Block a user