From 93b9886a445cb561a4874025321424a02e80ae8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 25 Oct 2011 16:06:51 +0000 Subject: [PATCH] Add some notify calls to give visual indication of the script working. Doesn't take too much time but... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42911 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- 3rdparty/mmu_man/scripts/HardwareChecker.sh | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/3rdparty/mmu_man/scripts/HardwareChecker.sh b/3rdparty/mmu_man/scripts/HardwareChecker.sh index 895594c339..16867ebf41 100755 --- a/3rdparty/mmu_man/scripts/HardwareChecker.sh +++ b/3rdparty/mmu_man/scripts/HardwareChecker.sh @@ -13,6 +13,21 @@ netcat=netcat report_site=haikuware.con report_cgi=http://haikuware.com/hwreport.php +do_notify () +{ + p="$1" + m="$2" + shift + shift + notify --type progress \ + --messageID hwck_$$ \ + --icon /system/apps/Devices \ + --app HardwareChecker \ + --title "progress:" --progress "$p" "$m" "$@" + + +} + start_fake_httpd () { report_port=8989 @@ -244,12 +259,23 @@ check_all () echo "" echo "
" + do_notify 0.1 "Checking for PCI hardware..." check_pci + + do_notify 0.3 "Checking for USB hardware..." check_usb + + do_notify 0.5 "Checking for Haiku version..." check_haiku + + do_notify 0.6 "Checking for utility outputs..." check_utils + + do_notify 0.8 "Dumping syslog output..." check_syslog check_sender + + do_notify 1.0 "Done!" echo "
Note: this form will only send data that is visible on this page.
" @@ -262,6 +288,7 @@ check_all () tf=/tmp/hw_checker_$$.html +do_notify 0.0 "Checking for network..." detect_network check_all > "$tf"