HardwareChecker: try to install the netcat package

and do it before trying to use it.
This commit is contained in:
François Revol 2015-11-01 03:05:13 +01:00
parent 2a9ee98bf0
commit 894526b51a
1 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
netcat=netcat netcat=netcat
report_site=fake.haikuware.com report_site=fake.haikuware.com
report_cgi=http://haikuware.com/hwreport.php report_cgi=http://haikuware.com/hwreport.php
packages="dmidecode" packages="dmidecode netcat"
do_notify () do_notify ()
{ {
@ -373,12 +373,12 @@ check_all ()
tf=/tmp/hw_checker_$$.html tf=/tmp/hw_checker_$$.html
do_notify 0.0 "Checking for network..."
detect_network
do_notify 0.0 "Checking for needed packages..." do_notify 0.0 "Checking for needed packages..."
try_install_packages try_install_packages
do_notify 0.0 "Checking for network..."
detect_network
check_all > "$tf" check_all > "$tf"
open "$tf" open "$tf"