mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
openconnect: forward SIGINT to app
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=openconnect
|
PKG_NAME:=openconnect
|
||||||
PKG_VERSION:=6.00
|
PKG_VERSION:=6.00
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
|
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
|
||||||
|
|||||||
@@ -22,7 +22,17 @@ cleanup()
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup 1 2 3 6 15
|
cleanup2()
|
||||||
|
{
|
||||||
|
if ! test -z "$pid";then
|
||||||
|
kill -2 $pid
|
||||||
|
wait $pid
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
trap cleanup2 2
|
||||||
|
trap cleanup 1 3 6 15
|
||||||
|
|
||||||
rm -f "$pidfile"
|
rm -f "$pidfile"
|
||||||
/usr/sbin/openconnect $* <$pwfile &
|
/usr/sbin/openconnect $* <$pwfile &
|
||||||
|
|||||||
Reference in New Issue
Block a user