it worked almost fine on my machine, here some idea to improve it:
- In my laptop lshw was not installed, the script wrote:
- Code: Select all
tom@localhost Desktop]$ sudo ./wireless_script_2.1.sh --verbose
[sudo] password for tom:
./wireless_script_2.1.sh: line 2166: server1-link: command not found
Performing initial enviroment checks.....
which: no lshw in (/sbin:/bin:/usr/sbin:/usr/bin)
cannot find required binaries
it would be better suggest something like "please run urpmi lshw when a connection is availlable"
- running the script with lshw installed, it stopped before the end (should end with "probe complete...please see 'wireless-results.txt")
- Code: Select all
tom@localhost Desktop]$ sudo ./wireless_script_2.1.sh --verbose
./wireless_script_2.1.sh: line 2166: server1-link: command not found
Performing initial enviroment checks.....
Please select an adaptor to check
1. AR9285 Wireless Network Adapter (PCI-Express)
2. RTL8101E/RTL8102E PCI Express Fast Ethernet controller
3. Exit
1
Please be patient. Depending on your setup this could take some time...
tom@localhost Desktop]$
running the script with "bash -x" It end with:
- Code: Select all
+ echo 'Please be patient. Depending on your setup this could take some time...'
Please be patient. Depending on your setup this could take some time...
+ call_redirect_stdout
+ exec
+ exec
+ exec
tom@localhost Desktop]$
- everytime the script runs, I can see this line: "./wireless_script_2.1.sh: line 2166: server1-link: command not found"
- It searches for files that in MGA have different name/location
- Code: Select all
/etc/network/interfaces does not exist
/etc/modprobe.d/blacklist.conf does not exist
- the last line in the generated report is
- Code: Select all
DEBUG: Interface value null in call_ping_target
- finally: my connection is working fine so the script didn't raise any problem,
but it would be nice if the script could be able to suggest some action to the user in order to improve/solve the situation
(but probably bash is not the better language to write a smarter script, so this point could require a full rewrite of this script)