Changeset 24529


Ignore:
Timestamp:
10/23/13 19:22:46 (9 years ago)
Author:
obi
Message:

fix openvpn

Location:
ipk/source.sh4/network_openvpn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/network_openvpn/CONTROL/postinst

    r23730 r24529  
    33
    44sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/openvpn.sh"
    5 sed s#_path_#"$INSTDIR"#g -i /var/bin/tun.sh
     5sed s#_path_#"$INSTDIR"#g -i /var/bin/vpn.sh
    66
    77exit 0
  • ipk/source.sh4/network_openvpn/_path_/etc/openvpn.sh

    r23730 r24529  
    1616                mknod /dev/net/tun c 10 200
    1717        fi
    18         if ( !(lsmod | grep -q "tun") ); then
    19                 if [ -e /lib/modules/tun.ko ]; then
     18
     19#       if ( !(lsmod | grep -q "tun") ); then
     20#               if [ -e /lib/modules/tun.ko ]; then
    2021                        insmod /lib/modules/tun.ko
    21                 elif [ -e /var/lib/modules/tun.ko ]; then
    22                         insmod /var/lib/modules/tun.ko
    23                 elif [ -e _path_/lib/modules/tun.ko ]; then
    24                         insmod _path_/lib/modules/tun.ko
    25                 fi
    26         fi
     22#               elif [ -e /var/lib/modules/tun.ko ]; then
     23#                       insmod /var/lib/modules/tun.ko
     24#               elif [ -e _path_/lib/modules/tun.ko ]; then
     25#                       insmod _path_/lib/modules/tun.ko
     26#               fi
     27#       fi
    2728        /lib/ld-linux.so.2 --library-path _path_/lib $DAEMON --daemon --writepid /var/run/openvpn.$NAME.pid \
    2829        --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED->"
Note: See TracChangeset for help on using the changeset viewer.