diff options
Diffstat (limited to 'abs/core-testing')
-rw-r--r-- | abs/core-testing/linhes-scripts/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/core-testing/linhes-scripts/linhes_update3.sh | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD index 99f70dd..1cc569a 100644 --- a/abs/core-testing/linhes-scripts/PKGBUILD +++ b/abs/core-testing/linhes-scripts/PKGBUILD @@ -3,7 +3,7 @@ pkgname=linhes-scripts pkgver=1 -pkgrel=33 +pkgrel=34 pkgdesc="Various scripts that help to make LinHES, LinHES." arch=('i686' 'x86_64') license=('GPL2') diff --git a/abs/core-testing/linhes-scripts/linhes_update3.sh b/abs/core-testing/linhes-scripts/linhes_update3.sh index 82722b8..56e8612 100644 --- a/abs/core-testing/linhes-scripts/linhes_update3.sh +++ b/abs/core-testing/linhes-scripts/linhes_update3.sh @@ -1,9 +1,10 @@ #!/bin/bash -if [ -s /tmp/to_be_upgraded ] +sudo killall osd_cat +cat /tmp/to_be_upgraded | sed 's/ /\n/g' | sed '/^$/d' | grep - > /tmp/to_be_upgraded2 +COUNT=$(wc -l /tmp/to_be_upgraded2 | awk '{print $1}') +if [ $COUNT -lt 20 ] then - sudo killall osd_cat - cat /tmp/to_be_upgraded | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 1 -A centre -l 20 -w + cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 12 -A centre -l 20 else - sudo killall osd_cat - echo -e "No updates at this time." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre & + cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 1 -A centre -l 20 -w fi |