summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-scripts/linhes_update3.sh
blob: 56e86123ef0b26d558720ed378bde6e7a0e16a68 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
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
	cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 12 -A centre -l 20
	else
	cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 1 -A centre -l 20 -w
fi