summaryrefslogtreecommitdiffstats
path: root/openconnect/build/patches/vpnc-script_slackware.patch
blob: dbf376936edca790ffba1d27ad278069bf213c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- vpnc-script.orig	2017-06-08 19:49:19.350920045 +0200
+++ vpnc-script	2017-06-24 21:29:57.473670157 +0200
@@ -127,7 +127,7 @@
 elif [ -x /sbin/resolvconf ]; then # Optional tool on Debian, Ubuntu, Gentoo and FreeBSD
 	MODIFYRESOLVCONF=modify_resolvconf_manager
 	RESTORERESOLVCONF=restore_resolvconf_manager
-elif [ -x /sbin/netconfig ]; then # tool on Suse after 11.1
+elif [ -x /sbin/netconfig ] && [ ! -f /etc/slackware-version ]; then # tool on Suse after 11.1, do not use on Slackware
 	MODIFYRESOLVCONF=modify_resolvconf_suse_netconfig
 	RESTORERESOLVCONF=restore_resolvconf_suse_netconfig
 elif [ -x /sbin/modify_resolvconf ]; then # Mandatory tool on Suse earlier than 11.1