diff options
author | Michael Hanson <mihanson@linhes.org> | 2011-10-08 20:23:49 (GMT) |
---|---|---|
committer | Michael Hanson <mihanson@linhes.org> | 2011-10-08 20:23:49 (GMT) |
commit | 67ad686c6de613b27afc8ca3420aff61c4e42b95 (patch) | |
tree | 5cba5a12ba55efbdce1a57220b8347b8e93bf850 /abs/core/linhes-scripts/linhes_update3.sh | |
parent | 054789aa67c95eb212c020fa1c92d5191e7fb153 (diff) | |
parent | acb5b54bcbb632533b788e4ef6b600356947be6e (diff) | |
download | linhes_pkgbuild-67ad686c6de613b27afc8ca3420aff61c4e42b95.zip linhes_pkgbuild-67ad686c6de613b27afc8ca3420aff61c4e42b95.tar.gz linhes_pkgbuild-67ad686c6de613b27afc8ca3420aff61c4e42b95.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/linhes-scripts/linhes_update3.sh')
-rw-r--r-- | abs/core/linhes-scripts/linhes_update3.sh | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/abs/core/linhes-scripts/linhes_update3.sh b/abs/core/linhes-scripts/linhes_update3.sh index 5dc0b4d..72641db 100644 --- a/abs/core/linhes-scripts/linhes_update3.sh +++ b/abs/core/linhes-scripts/linhes_update3.sh @@ -1,17 +1,28 @@ #!/bin/bash +#---------------------------------------------------------------------------- +. /etc/osd_cat.cfg || { + color=yellow + outline=2 + outlinecolour=black + shadow=0 + shadowcolour=black + font="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*" +} +#---------------------------------------------------------------------------- + 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 + cat /tmp/to_be_upgraded2 | osd_cat --lines=20 --pos=top --align=center --delay=12 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font & else - cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 1 -A centre -l 20 -w + cat /tmp/to_be_upgraded2 | osd_cat --lines=20 --pos=top --align=center --delay=1 --wait --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font & fi if grep kernel26 /tmp/to_be_upgraded2 then killall -9 osd_cat - echo -e "Please note:\The kernel will be upgraded.\nThis will require a reboot.\nPlease do so when no jobs are running." | osd_cat -p middle -s 5 -f"-adobe-courier-bould-*-*-*-34-*-*-*-*-*" -d 10 -A centre + echo -e "Please note:\The kernel will be upgraded.\nThis will require a reboot.\nPlease do so when no jobs are running." | osd_cat --pos=middle --align=center --delay=10 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font else exit fi |