Browse Source

openconnect: forward SIGINT to app

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 10 years ago
parent
commit
a412f2cc46
2 changed files with 12 additions and 2 deletions
  1. +1
    -1
      net/openconnect/Makefile
  2. +11
    -1
      net/openconnect/files/openconnect-wrapper

+ 1
- 1
net/openconnect/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openconnect
PKG_VERSION:=6.00
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/


+ 11
- 1
net/openconnect/files/openconnect-wrapper View File

@ -22,7 +22,17 @@ cleanup()
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"
/usr/sbin/openconnect $* <$pwfile &


Loading…
Cancel
Save