vpn start script starting during boot

  • hello,


    i tried to make thats my libreelec aktivates vpn on boot. when i start it manuall it works (until one error) but when i boot he makes nothing.....
    i use libreelec on my normal pc hadrdware, the generetic build.

    i made a autostart.sh with this code :

    Code
    (
    openvpn /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/boot.ovpn ;
    sleep 10; \
    ) &


    the problem is by this code i get a error when i start it manuall , but it starts.

    Code
    : not foundonfig/autostart.sh: line 4:


    any ideas whats wrong with my code? and why he doesnt start it by booting ?

    thx

    Edited once, last by pimp1310 (September 3, 2016 at 9:03 AM).

  • first thank you for your reply !!


    second :) i doesnt have the file unter this folder, i ohne had "openvpn.service.sample", do you mean this ?


    and i dont had this file openvpn.config in the folder...

    1) Edit /storage/.config/openvpn.config to the .config/.conf/.ovpn file
    # from your VPN service provider and test it works first by connecting at
    # the console:
    #

    Edited once, last by pimp1310 (September 3, 2016 at 10:20 AM).