new package: add package 'ethtool', setup WOL on eth0 and eth1

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-01 19:19:39 +02:00
parent fb0a007815
commit 7f1b80ba45
5 changed files with 54 additions and 0 deletions

15
packages/network/ethtool/build Executable file
View File

@ -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

View File

@ -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 &

View File

@ -0,0 +1,6 @@
#!/bin/sh
. config/options $1
mkdir -p $INSTALL/usr/sbin
cp $PKG_BUILD/ethtool $INSTALL/usr/sbin

View File

@ -0,0 +1 @@
http://downloads.sourceforge.net/project/gkernel/ethtool/2.6.35/ethtool-2.6.35.tar.gz

View File

@ -4,6 +4,7 @@
$SCRIPTS/install connman
$SCRIPTS/install dropbear
$SCRIPTS/install ethtool
#$SCRIPTS/install wicd
$SCRIPTS/install netmount
$SCRIPTS/install wireless_tools