summaryrefslogtreecommitdiffstats
path: root/abs/core/linhes-scripts/linhes_update2.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-02-20 02:08:12 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-02-20 02:08:12 (GMT)
commitc34bed5a3878800808d66c788af1e240c856de99 (patch)
treecf2db684989dd2946482866dbcbe5b3c6a7685fd /abs/core/linhes-scripts/linhes_update2.sh
parent443b2a8694fbf63ed61f9624b4741a6bae28374b (diff)
downloadlinhes_pkgbuild-c34bed5a3878800808d66c788af1e240c856de99.zip
linhes_pkgbuild-c34bed5a3878800808d66c788af1e240c856de99.tar.gz
linhes_pkgbuild-c34bed5a3878800808d66c788af1e240c856de99.tar.bz2
linhes-scripts: linhes_update2.sh: notify user to reboot
linhes_update.sh: add nvidia to reboot check
Diffstat (limited to 'abs/core/linhes-scripts/linhes_update2.sh')
-rw-r--r--abs/core/linhes-scripts/linhes_update2.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/abs/core/linhes-scripts/linhes_update2.sh b/abs/core/linhes-scripts/linhes_update2.sh
index a48a996..f95898a 100644
--- a/abs/core/linhes-scripts/linhes_update2.sh
+++ b/abs/core/linhes-scripts/linhes_update2.sh
@@ -20,6 +20,11 @@ then
killall -9 osd_cat
echo -e "\nUpdates complete." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &
echo -e "\nUpdates complete." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &
+ if grep kernel26 /tmp/to_be_upgraded || grep nvidia /tmp/to_be_upgrade
+ then
+ echo -e "\n\nUpdates require a reboot." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &
+ echo -e "\n\nUpdates require a reboot." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &
+ fi
else
killall -9 osd_cat
echo -e "\nUpdates canceled." | osd_cat --pos=middle --align=center --delay=3 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &