aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/tuntap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net.Linux/tuntap.sh')
-rw-r--r--net.Linux/tuntap.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/net.Linux/tuntap.sh b/net.Linux/tuntap.sh
index 829bf138..ba9b2e87 100644
--- a/net.Linux/tuntap.sh
+++ b/net.Linux/tuntap.sh
@@ -17,9 +17,9 @@ tuntap_pre_start() {
[ -z "${tuntap}" ] && return 0
- if [ ! -a /dev/net/tun ] ; then
+ if [ ! -e /dev/net/tun ] ; then
modprobe tun && sleep 1
- if [ ! -a /dev/net/tun ] ; then
+ if [ ! -e /dev/net/tun ] ; then
eerror "TUN/TAP support is not present in this kernel"
return 1
fi
@@ -37,7 +37,7 @@ tuntap_pre_start() {
eval opts=\$tunctl_${IFVAR}
tunctl ${opts} -t "${IFACE}" >/dev/null
fi
- eend $? && save_options tuntap "${tuntap}"
+ eend $? && _up && save_options tuntap "${tuntap}"
}
tuntap_post_stop() {