#!/usr/bin/perl
#
# IPFire WakeOnLan-AddOn CGI
+# This code is based on the wol-gui addon
+# for ipcop written by weizen_42.
+# http://www.ban-solms.de/t/IPCop-wolgui.html
#
# This code is distributed under the terms of the GPL
#
undef %cgiparams;
- system("/usr/local/sbin/launch-ether-wake $mac $iface");
+ system("/usr/local/bin/launch-ether-wake $mac $iface");
# make a box with info, 'refresh' to normal screen after 5 seconds
if ( $refresh eq 'yes' )
{
- &Header::openpage($Lang::tr{'WakeOnLan'}, 1, "<meta http-equiv='refresh' content='3;url=/cgi-bin/wakeonlan-gui.cgi'");
+ &Header::openpage($Lang::tr{'WakeOnLan'}, 1, "<meta http-equiv='refresh' content='3;url=/cgi-bin/wakeonlan.cgi'");
&Header::openbigbox('100%', 'left');
}
&Header::openbox('100%', 'left', $Lang::tr{'WakeOnLan'});