Jump to content

Removing Module over SSH


ShadowScar

Recommended Posts

I've been attempting to install RandomRoll on my nano and it keeps hanging at "installing". I did not see it in my installed modules list and decided to SSH into the device to see if it is showing up in /sd/modules. I do see RandomRoll in /sd/modules. I decide to try to remove the directory and reinstall fresh. Unfortunately, I can't remove the directory because it is saying, "Directory not empty."

 

I tried a bunch of different flags, (-r, -f, -rf with both "rm" and "rmdir") and still can't remove it. I tried sudo but it doesn't look like that command is recognized. Has anyone been able to remove these directories this way? Like I said, it's not showing up in the GUI so I can't remove it from there. 

Link to comment
Share on other sites

It should be "rm -rf" as that is used when uninstalling modules from the UI

private function removeModule()
    {
        if (is_link("/pineapple/modules/{$this->request->moduleName}")) {
            @unlink("/pineapple/modules/{$this->request->moduleName}");
            exec("rm -rf /sd/modules/{$this->request->moduleName}");
        } else {
            exec("rm -rf /pineapple/modules/{$this->request->moduleName}");
        }

        $this->response = array('success' => true);

you could always try popping the sd card out and do it on another machine

Edited by Just_a_User
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...