Mercurial > hg > quicktun
annotate debian/static/etc/network/if-post-down.d/quicktun @ 32:51c6d2fc712f V2.1.8
Fixes contributed by Daniel Dickinson <daniel@cshore.neomailbox.net>
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 12 Oct 2011 01:34:46 +0200 |
parents | 3400045a57b8 |
children | d83d6bb647a2 |
rev | line source |
---|---|
0 | 1 #!/bin/sh |
2 test -n "${IF_QT_REMOTE_ADDRESS}" || exit 0 | |
19
3400045a57b8
Version 2.1.6, changed sourcecode archive generation, use NaCl version 20110221, do not duplicate NaCl sourcecode, support iproute2 for persistent tunnel creation on Debian, support running as root on Debian, removed autogenerated header files
Ivo Smits <Ivo@UCIS.nl>
parents:
0
diff
changeset
|
3 test -z "${IF_QT_NO_PRECREATE}" || exit 0 |
3400045a57b8
Version 2.1.6, changed sourcecode archive generation, use NaCl version 20110221, do not duplicate NaCl sourcecode, support iproute2 for persistent tunnel creation on Debian, support running as root on Debian, removed autogenerated header files
Ivo Smits <Ivo@UCIS.nl>
parents:
0
diff
changeset
|
4 if [ -x /usr/sbin/openvpn ]; then |
3400045a57b8
Version 2.1.6, changed sourcecode archive generation, use NaCl version 20110221, do not duplicate NaCl sourcecode, support iproute2 for persistent tunnel creation on Debian, support running as root on Debian, removed autogenerated header files
Ivo Smits <Ivo@UCIS.nl>
parents:
0
diff
changeset
|
5 /usr/sbin/openvpn --rmtun --dev "${IFACE}" |
32
51c6d2fc712f
Fixes contributed by Daniel Dickinson <daniel@cshore.neomailbox.net>
Ivo Smits <Ivo@UCIS.nl>
parents:
19
diff
changeset
|
6 elif [ -x /sbin/ip ] && /sbin/ip tuntap 2>&1 >/dev/null; then |
19
3400045a57b8
Version 2.1.6, changed sourcecode archive generation, use NaCl version 20110221, do not duplicate NaCl sourcecode, support iproute2 for persistent tunnel creation on Debian, support running as root on Debian, removed autogenerated header files
Ivo Smits <Ivo@UCIS.nl>
parents:
0
diff
changeset
|
7 /sbin/ip tuntap del dev "${IFACE}" |
32
51c6d2fc712f
Fixes contributed by Daniel Dickinson <daniel@cshore.neomailbox.net>
Ivo Smits <Ivo@UCIS.nl>
parents:
19
diff
changeset
|
8 elif [ -x /usr/sbin/tunctl ]; then |
51c6d2fc712f
Fixes contributed by Daniel Dickinson <daniel@cshore.neomailbox.net>
Ivo Smits <Ivo@UCIS.nl>
parents:
19
diff
changeset
|
9 /usr/sbin/tunctl -d "${IFACE}" |
19
3400045a57b8
Version 2.1.6, changed sourcecode archive generation, use NaCl version 20110221, do not duplicate NaCl sourcecode, support iproute2 for persistent tunnel creation on Debian, support running as root on Debian, removed autogenerated header files
Ivo Smits <Ivo@UCIS.nl>
parents:
0
diff
changeset
|
10 fi |