Attempt to fix tun/tap issue on first boot.
This commit is contained in:
parent
39d88dc809
commit
2bd31e8d03
@ -21,8 +21,7 @@ tuntap_pre_start()
|
|||||||
[ -z "${tuntap}" ] && return 0
|
[ -z "${tuntap}" ] && return 0
|
||||||
|
|
||||||
if [ ! -e /dev/net/tun ]; then
|
if [ ! -e /dev/net/tun ]; then
|
||||||
modprobe tun && sleep 1
|
if ! modprobe tun; then
|
||||||
if [ ! -e /dev/net/tun ]; then
|
|
||||||
eerror "TUN/TAP support is not present in this kernel"
|
eerror "TUN/TAP support is not present in this kernel"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user