• November 01, 2024, 05:34:25 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Run init command  (Read 4290 times)

heroseloi

  • Level 1 Member
  • *
  • Posts: 4
Run init command
« on: November 30, 2016, 05:47:56 AM »

Hi everybody!

I need add some command in the init process, like "rc.local" for example.

How can I do it?

Thanks!
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Run init command
« Reply #1 on: November 30, 2016, 02:30:06 PM »

Which version of Linux have you changed your firmware to?
Are you using Fun-Plug or Alt-F?

Edit to add:
What are you trying to do that isn't normal for a NAS box and could it run on the lower powered arm processor?
« Last Edit: November 30, 2016, 02:32:21 PM by ivan »
Logged

heroseloi

  • Level 1 Member
  • *
  • Posts: 4
Re: Run init command
« Reply #2 on: December 01, 2016, 07:55:48 AM »

I'm using the native version of firmware, 1.06.
I need run a command to conect to VPN by Openvpn.

Commands to run:
cd /mnt/HD/HD_a2/Nas_Prog/OpenVPN/etc/
/mnt/HD/HD_a2/Nas_Prog/OpenVPN/sbin/openvpn --config openvpn.conf &

Thank's for the support!
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Run init command
« Reply #3 on: December 01, 2016, 08:37:53 AM »

I don't think you can do that without adding something to the native firmware (when we do something like that it is via one of our servers acting as interface between NAS and VPN.  I will ask one of my service people what they can find out tomorrow but I think you will have to add Fun-Plug or change to Alt-F.
Logged

heroseloi

  • Level 1 Member
  • *
  • Posts: 4
Re: Run init command
« Reply #4 on: December 01, 2016, 09:17:18 AM »

I installed the plugin Openvpn available in the add ons official repo.
But I need use it as client.
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Run init command
« Reply #5 on: December 02, 2016, 05:35:58 PM »

As far as I know the OpenVPN addon is only a server and can't be used as a client. 

The general agreement here is that you need Alt-F to do what you want.  If you decide to try that out take care and read all the instructions and be sure you understand what to do.  Also, before you do anything make a copy of your configuration and a copy of the firmware on the NAS (that way you can always revert if necessary).  You should also do what we do when working on any storage device - make a complete backup of all the data and check that you can read the backup (if you have it you most probably won't need it BUT if you don't have it Murphy says you are going to need it). 
Logged

heroseloi

  • Level 1 Member
  • *
  • Posts: 4
Re: Run init command
« Reply #6 on: December 03, 2016, 03:53:13 AM »

ok. I put the Alt-f firmware and everything works fine!
Thank you very much!
Logged