There now seems to be certain time lag between tun module is loaded
and /dev/net/tun is created. So the script would die on the following lines:
modprobe tun
if [ ! -c /dev/net/tun ]; then
echo "/dev/net/tun doesn't exist"
exit
fi
Adding tun to /etc/modules.autoload.d/kernel-2.6 helps
but the question now is if it's normal behaviour or a bug
introduced with recent udev upgrade?
> Do you have "Universal TUN/TAP device driver support" (CONFIG_TUN)
> enabled in your kernel configuration? It should be a network device in
> your kernel configuration:
>
> Device Drivers -->
> Networking support -->
> Network device support -->
> <*> Universal TUN/TAP device driver support
>
> You can also build it as a module, and it will be called "tun".
> Hope that helps!
--
[email protected] mailing list