ypy705 / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

openvpn: unsatisfied recommendation for kernel-module-tun #601

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.ipkg install openvpn

What version of the product are you using? On what operating system?
3.0.3.0-026

Please describe the problem as detailed as it's possible.
/opt/home/admin # ipkg install openvpn
Installing openvpn (2.2.0-1) to /opt/...
Downloading 
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/openvpn_2.2.0-1_mips
el.ipk
openvpn: unsatisfied recommendation for kernel-module-tun
package openvpn suggests installing xinetd
Configuring openvpn
Successfully terminated.

/opt/home/admin # /opt/etc/init.d/S20openvpn start
insmod: can't insert '/opt/lib/modules/tun.o.ko': No such file or directory

Original issue reported on code.google.com by igor.shk...@gmail.com on 23 Nov 2012 at 7:41

GoogleCodeExporter commented 8 years ago
You should edit /opt/etc/init.d/S20openvpn. Comment line with insmod, and add 
something like that after it:

if [ -c /dev/tun ] ; then
   [ -d /dev/net ]     || mkdir -m 0777 /dev/net
   [ -L /dev/net/tun ] || ln -sf /dev/tun /dev/net 2>&1 | logger -st "$0"
else
   if [ ! -c /dev/net/tun ] ; then
        logger -st "$0" "Can't find tun driver"
        exit 1
   fi
fi

--------------

See openvpn package in downloads as an example.

Original comment by d...@soulblader.com on 23 Nov 2012 at 7:38