diff --git a/src/default.conf b/src/default.conf index 360aa1e..de249c5 100644 --- a/src/default.conf +++ b/src/default.conf @@ -1,4 +1,4 @@ -CONFIG_VERSION=0.4.0 +CONFIG_VERSION=0.4.1 # Author: Jochum D, jooch (at) gmx (dot) com # License: GPL3 # URL: https://github.com/j00ch/linux-ck-autobuild @@ -87,9 +87,11 @@ WATCHDOG_INTERVAL="3h" # Options for update dialog, timeout sets the dialog confirmation timeout (update will start after that). # Postponed sets the time for which an update is postponed after canceling. -TIMEOUT="10" +TIMEOUT="3" TIMEOUT_UNIT="m" POSTPONED="3h" +# Daemon will wait until average system load drops below set value, "1.00" disables the option. +load_target="0.20" # User commands to run after compiling kernels, example: 'echo "Autobuild done" | mail -s "Autobuild done" mail@domain.tld' USER_COMMAND1="" diff --git a/src/linux-ck-autobuild b/src/linux-ck-autobuild index f52de3a..6b27cf6 100644 --- a/src/linux-ck-autobuild +++ b/src/linux-ck-autobuild @@ -1,6 +1,6 @@ #!/bin/bash # linux-ck-autobuild -VERSION=0.4.0 +VERSION=0.4.1 # Author: Jochum D, jooch (at) gmx (dot) com # License: GPL3 # About: This script will automatically build specified ck kernels diff --git a/src/linux-ck-autobuild-daemon b/src/linux-ck-autobuild-daemon index 797b0b5..ed15294 100644 --- a/src/linux-ck-autobuild-daemon +++ b/src/linux-ck-autobuild-daemon @@ -1,6 +1,6 @@ #!/bin/bash # linux-ck-autobuild-daemon.sh -VERSION=0.4.0 +VERSION=0.4.1 # Author: Jochum D, jooch (at) gmx (dot) com # License: GPL3 # About: This script is part of linux-ck-autobuild, checks for new versions and automatically @@ -21,9 +21,9 @@ function dialog { ) | if zenity --text="New kernel version detected ($latest_version), build wil start in $TIMEOUT$TIMEOUT_UNIT" --title="$window_title" --progress --percentage=0 --auto-close; then echo "Waiting for sufficient system resources" - load_avg=$(cat /proc/loadavg | cut -c 11-14) + load_avg=$(cat /proc/loadavg | cut -c 6-9) while true; do - [[ "$load_avg" < "0.20" ]] && break + [[ "$load_avg" < "$load_target" ]] && break sleep 30s done linux-ck-autobuild