diff --git a/packages/network/ethtool/build b/packages/network/ethtool/build new file mode 100755 index 0000000000..01f86c4d70 --- /dev/null +++ b/packages/network/ethtool/build @@ -0,0 +1,15 @@ +#!/bin/sh + +. config/options $1 + +$SCRIPTS/build toolchain + +cd $PKG_BUILD + +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + +make diff --git a/packages/network/ethtool/init.d/14_ethtool b/packages/network/ethtool/init.d/14_ethtool new file mode 100755 index 0000000000..16a797d44b --- /dev/null +++ b/packages/network/ethtool/init.d/14_ethtool @@ -0,0 +1,31 @@ +#!/bin/sh + +################################################################################ +# Copyright (C) 2009-2010 OpenELEC.tv +# http://www.openelec.tv +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +# enable WOL on eth0 and eth1 +# +# runlevels: openelec, textmode + +. /etc/profile + +progress "enable WOL on eth0 and (maybe) eth1" + /usr/sbin/ethtool -s eth0 wol g > /dev/null 2>&1 & + /usr/sbin/ethtool -s eth1 wol g > /dev/null 2>&1 & diff --git a/packages/network/ethtool/install b/packages/network/ethtool/install new file mode 100755 index 0000000000..6c0133eb2e --- /dev/null +++ b/packages/network/ethtool/install @@ -0,0 +1,6 @@ +#!/bin/sh + +. config/options $1 + +mkdir -p $INSTALL/usr/sbin + cp $PKG_BUILD/ethtool $INSTALL/usr/sbin diff --git a/packages/network/ethtool/url b/packages/network/ethtool/url new file mode 100644 index 0000000000..4df1bb236e --- /dev/null +++ b/packages/network/ethtool/url @@ -0,0 +1 @@ +http://downloads.sourceforge.net/project/gkernel/ethtool/2.6.35/ethtool-2.6.35.tar.gz \ No newline at end of file diff --git a/packages/network/install b/packages/network/install index e5101d6dde..6cf002937f 100755 --- a/packages/network/install +++ b/packages/network/install @@ -4,6 +4,7 @@ $SCRIPTS/install connman $SCRIPTS/install dropbear +$SCRIPTS/install ethtool #$SCRIPTS/install wicd $SCRIPTS/install netmount $SCRIPTS/install wireless_tools