diff options
Diffstat (limited to 'scripts/autobuilder-worker-prereq-tests')
-rwxr-xr-x | scripts/autobuilder-worker-prereq-tests | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests index c0148fbce8..bb46c69135 100755 --- a/scripts/autobuilder-worker-prereq-tests +++ b/scripts/autobuilder-worker-prereq-tests | |||
@@ -34,10 +34,11 @@ if [ "$?" != "0" ]; then | |||
34 | echo "Bitbake parsing failed" | 34 | echo "Bitbake parsing failed" |
35 | exit 1 | 35 | exit 1 |
36 | fi | 36 | fi |
37 | WATCHES=`sysctl fs.inotify.max_user_watches -n` | 37 | |
38 | if (( $WATCHES < 100000 )); then | 38 | WATCHES=$(PATH="/sbin:/usr/sbin:$PATH" sysctl fs.inotify.max_user_watches -n) |
39 | echo 'Need to increase watches (echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf' | 39 | if (( $WATCHES < 65000 )); then |
40 | #exit 1 | 40 | echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' |
41 | exit 1 | ||
41 | fi | 42 | fi |
42 | mkdir -p tmp/deploy/images/qemux86-64 | 43 | mkdir -p tmp/deploy/images/qemux86-64 |
43 | pushd tmp/deploy/images/qemux86-64 | 44 | pushd tmp/deploy/images/qemux86-64 |