mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-07 01:47:50 +00:00
new package: add package 'ethtool', setup WOL on eth0 and eth1
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fb0a007815
commit
7f1b80ba45
15
packages/network/ethtool/build
Executable file
15
packages/network/ethtool/build
Executable 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
|
31
packages/network/ethtool/init.d/14_ethtool
Executable file
31
packages/network/ethtool/init.d/14_ethtool
Executable 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 &
|
6
packages/network/ethtool/install
Executable file
6
packages/network/ethtool/install
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/sbin
|
||||
cp $PKG_BUILD/ethtool $INSTALL/usr/sbin
|
1
packages/network/ethtool/url
Normal file
1
packages/network/ethtool/url
Normal file
@ -0,0 +1 @@
|
||||
http://downloads.sourceforge.net/project/gkernel/ethtool/2.6.35/ethtool-2.6.35.tar.gz
|
@ -4,6 +4,7 @@
|
||||
|
||||
$SCRIPTS/install connman
|
||||
$SCRIPTS/install dropbear
|
||||
$SCRIPTS/install ethtool
|
||||
#$SCRIPTS/install wicd
|
||||
$SCRIPTS/install netmount
|
||||
$SCRIPTS/install wireless_tools
|
||||
|
Loading…
x
Reference in New Issue
Block a user