Merge branch 'openelec-3.0' of github.com:OpenELEC/OpenELEC.tv into openelec-3.0

This commit is contained in:
Stephan Raue 2013-06-13 13:55:08 +02:00
commit 9eb93b183e
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ wait_for_inet_addr () {
if [ "$WAIT_NETWORK" = "true" ] ; then
progress "Wait for network"
[ -z "$WAIT_NETWORK_TIME" ] && WAIT_NETWORK_TIME=10
LOOP_COUNT=$[$WAIT_NETWORK_TIME * 5]
LOOP_COUNT=$((WAIT_NETWORK_TIME * 5))
for i in $(seq 1 $LOOP_COUNT) ; do
cnt=$(ifconfig | sed -e '/inet addr:/!d' -e '/127.0.0.1/d' |wc -l)
[ $cnt -gt 0 ] && break

View File

@ -31,7 +31,7 @@ fi
if [ "$HDD_STANDBY" == "true" ] ; then
progress "Setup HDD standby"
[ -z "$HDD_STANDBY_TIME" ] && HDD_STANDBY_TIME=15
STANDBY_TIME=$[$HDD_STANDBY_TIME * 12]
STANDBY_TIME=$((HDD_STANDBY_TIME * 12))
for disk in /dev/sd?; do
hdparm -S $STANDBY_TIME $disk > /dev/null 2>&1
done