Jump to content

Removing Module over SSH


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}")) {
            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

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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