mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Merge pull request #3130 from andreasmn/master
WakeOnLan before booting
This commit is contained in:
commit
e8f62dccf7
@ -738,9 +738,9 @@ CONFIG_NBDCLIENT=y
|
|||||||
# CONFIG_NC_SERVER is not set
|
# CONFIG_NC_SERVER is not set
|
||||||
# CONFIG_NC_EXTRA is not set
|
# CONFIG_NC_EXTRA is not set
|
||||||
# CONFIG_NC_110_COMPAT is not set
|
# CONFIG_NC_110_COMPAT is not set
|
||||||
# CONFIG_PING is not set
|
CONFIG_PING=y
|
||||||
# CONFIG_PING6 is not set
|
# CONFIG_PING6 is not set
|
||||||
# CONFIG_FEATURE_FANCY_PING is not set
|
CONFIG_FEATURE_FANCY_PING=y
|
||||||
# CONFIG_WHOIS is not set
|
# CONFIG_WHOIS is not set
|
||||||
# CONFIG_FEATURE_IPV6 is not set
|
# CONFIG_FEATURE_IPV6 is not set
|
||||||
# CONFIG_FEATURE_UNIX_LOCAL is not set
|
# CONFIG_FEATURE_UNIX_LOCAL is not set
|
||||||
@ -752,7 +752,7 @@ CONFIG_NBDCLIENT=y
|
|||||||
# CONFIG_FEATURE_BRCTL_FANCY is not set
|
# CONFIG_FEATURE_BRCTL_FANCY is not set
|
||||||
# CONFIG_FEATURE_BRCTL_SHOW is not set
|
# CONFIG_FEATURE_BRCTL_SHOW is not set
|
||||||
# CONFIG_DNSD is not set
|
# CONFIG_DNSD is not set
|
||||||
# CONFIG_ETHER_WAKE is not set
|
CONFIG_ETHER_WAKE=y
|
||||||
# CONFIG_FAKEIDENTD is not set
|
# CONFIG_FAKEIDENTD is not set
|
||||||
# CONFIG_FTPD is not set
|
# CONFIG_FTPD is not set
|
||||||
# CONFIG_FEATURE_FTP_WRITE is not set
|
# CONFIG_FEATURE_FTP_WRITE is not set
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||||
# Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv)
|
# Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv)
|
||||||
# Copyright (C) 2012 Yann Cézard (eesprit@free.fr)
|
# Copyright (C) 2012 Yann Cézard (eesprit@free.fr)
|
||||||
#
|
#
|
||||||
# OpenELEC is free software: you can redistribute it and/or modify
|
# OpenELEC is free software: you can redistribute it and/or modify
|
||||||
@ -91,6 +91,15 @@
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
wol_mac=*)
|
||||||
|
wol_mac="${arg#*=}"
|
||||||
|
;;
|
||||||
|
wol_ip=*)
|
||||||
|
wol_ip="${arg#*=}"
|
||||||
|
;;
|
||||||
|
wol_wait=*)
|
||||||
|
wol_wait="${arg#*=}"
|
||||||
|
;;
|
||||||
textmode)
|
textmode)
|
||||||
INIT_ARGS="$INIT_ARGS --unit=textmode.target"
|
INIT_ARGS="$INIT_ARGS --unit=textmode.target"
|
||||||
;;
|
;;
|
||||||
@ -413,6 +422,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
mount_storage() {
|
mount_storage() {
|
||||||
|
if [ -n "$wol_ip" ] && [ -n "$wol_mac" ] && [ -n "$wol_wait" ]; then
|
||||||
|
if ! (/bin/busybox ping -q -c 2 "$wol_ip" > /dev/null 2>&1); then
|
||||||
|
/bin/busybox ether-wake "$wol_mac"
|
||||||
|
/bin/busybox sleep "$wol_wait"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
progress "Mounting storage"
|
progress "Mounting storage"
|
||||||
|
|
||||||
if [ -n "$disk" ]; then
|
if [ -n "$disk" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user