NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

ebariaux1's avatar
ebariaux1
Follower
May 29, 2012

apt-get during add-on install

Hello all,

I'm trying to create a plug-in on the ReadyNAS Ultra, running RAIDiator 4.2.20.
In my install.sh, I'm running an apt-get command.

To test the script, I build the plug-in, then manually extract from the .bin and run install.sh
The script works correctly and everything is installed as I expect.

If I install the plug-in through Frontview though, the script gets stuck and the install never finishes.
If I ssh to the box and ps at that time, I can see the apt-get command displayed twice.

More specifically, I can see the following happening:
1. apt-get process appears
2. after a while, it spawns a /usr/lib/apt/methods/http process
3. this later gets replaced with a second apt-get command
4. this eventually turns into a zombie process and then the install just sits there.

Does anyone have an explanation of what might be going on ?

Thanks a lot,
Eric

3 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    Perhaps have a look at some add-ons that use apt-get and see how they do it, to look for clues that might explain the problem with yours.
  • Same problem
    I'm working on plugin that needs php.

    ... do you have a solution? :oops:

    I'd like to know if it's safe to apt-get install during installation?
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    There's already a PHP add-on. Why not just do a check to make sure PHP is installed and if it isn't abort the install?

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More