[PATCH 1/4] minor simplification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux