Skip to content

Commit

Permalink
Update to 0.4.1
Browse files Browse the repository at this point in the history
added system load target
  • Loading branch information
j00ch committed Mar 2, 2021
1 parent 83162a1 commit fb74f9d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/default.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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" [email protected]'
USER_COMMAND1=""
Expand Down
2 changes: 1 addition & 1 deletion src/linux-ck-autobuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/linux-ck-autobuild-daemon
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit fb74f9d

Please sign in to comment.