[PATCH 1/4] minor simplification
Corey Hickey
bugfood-ml at fatooh.org
Wed Aug 31 22:17:47 PDT 2016
Signed-off-by: Corey Hickey <bugfood-ml at fatooh.org>
---
vpnc-script | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vpnc-script b/vpnc-script
index 9c413e0..3bf7757 100755
--- a/vpnc-script
+++ b/vpnc-script
@@ -609,9 +609,8 @@ kernel_is_2_6_or_above() {
do_pre_init() {
if [ "$OS" = "Linux" ]; then
- if (exec 6<> /dev/net/tun) > /dev/null 2>&1 ; then
- :
- else # can't open /dev/net/tun
+ if ! (exec 6<> /dev/net/tun) > /dev/null 2>&1 ; then
+ # can't open /dev/net/tun
test -e /proc/sys/kernel/modprobe && `cat /proc/sys/kernel/modprobe` tun 2>/dev/null
# fix for broken devfs in kernel 2.6.x
if [ "`readlink /dev/net/tun`" = misc/net/tun \
--
2.9.3
More information about the openconnect-devel
mailing list