Project

General

Profile

Bug #1022

wol does not exist in Ubuntu

Added by sachinwfs over 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
ubuntu
Target version:
-
Start date:
04/03/2013
Due date:
% Done:

0%


Description

The web settings allows users to send a Wake-On-LAN packet to computers on the network. (hda/setup -> Networking)

The hosts controller at /var/hda/platform/html/app/controllers/hosts_controller.rb attempts the Wake-On-LAN by calling wol:

def wake_system
        @host = Host.find(params[:id])
        if @host
                system "wol #{@host.mac}" 
        end
end

def wake_mac
        @mac = params[:mac]
        if @mac
                system "wol #{@mac}" 
        end
end

Unfortunately, wol is not available on Ubuntu 12.04 with the default repositories. We should:

  1. sudo apt-get install wakeonlan during the HDA installation
  2. change system "wol ..." to system "wakeonlan ..." in hosts_controller.rb

There are other available packages to send magic packets on Ubuntu like powerwake and etherwake, but I don't know the difference between any of them.

History

#1 Updated by steven almost 7 years ago

I can confirm that this is a bug and the fix suggested above, along with a system restart, fixes the issue. Was quite annoying too until I found this bug report. ;)

Not sure if it's worth fixing with Amahi 7 in the works, but I'll try to write a patch if it's desired, despite my not being a Ruby dev.

Also available in: Atom