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
This commit is contained in:
+27
@@ -13,6 +13,21 @@ netcat=netcat
|
|||||||
report_site=haikuware.con
|
report_site=haikuware.con
|
||||||
report_cgi=http://haikuware.com/hwreport.php
|
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 ()
|
start_fake_httpd ()
|
||||||
{
|
{
|
||||||
report_port=8989
|
report_port=8989
|
||||||
@@ -244,12 +259,23 @@ check_all ()
|
|||||||
echo "<body>"
|
echo "<body>"
|
||||||
echo "<form method='POST' action='$report_cgi'>"
|
echo "<form method='POST' action='$report_cgi'>"
|
||||||
|
|
||||||
|
do_notify 0.1 "Checking for PCI hardware..."
|
||||||
check_pci
|
check_pci
|
||||||
|
|
||||||
|
do_notify 0.3 "Checking for USB hardware..."
|
||||||
check_usb
|
check_usb
|
||||||
|
|
||||||
|
do_notify 0.5 "Checking for Haiku version..."
|
||||||
check_haiku
|
check_haiku
|
||||||
|
|
||||||
|
do_notify 0.6 "Checking for utility outputs..."
|
||||||
check_utils
|
check_utils
|
||||||
|
|
||||||
|
do_notify 0.8 "Dumping syslog output..."
|
||||||
check_syslog
|
check_syslog
|
||||||
check_sender
|
check_sender
|
||||||
|
|
||||||
|
do_notify 1.0 "Done!"
|
||||||
|
|
||||||
echo "<div><i>Note: this form will only send data that is visible on this page.</i></div>"
|
echo "<div><i>Note: this form will only send data that is visible on this page.</i></div>"
|
||||||
|
|
||||||
@@ -262,6 +288,7 @@ check_all ()
|
|||||||
|
|
||||||
tf=/tmp/hw_checker_$$.html
|
tf=/tmp/hw_checker_$$.html
|
||||||
|
|
||||||
|
do_notify 0.0 "Checking for network..."
|
||||||
detect_network
|
detect_network
|
||||||
|
|
||||||
check_all > "$tf"
|
check_all > "$tf"
|
||||||
|
|||||||
Reference in New Issue
Block a user