Quote:
Originally Posted by dnh
Still not working. When I have some free time I may try and get usbnet working to debug it better, but in the meantime, is there any way to enable a higher level of debugging?
|
I am not sure what kind of higher level of debugging you expect in the case of a shell script. I can offer you this.
Code:
# debug_enable_wifi.sh
logfile=${ksmuser}/txt/enable_wifi_log.txt
sh -x ${ksmroot}/scripts_intern/wifi/wifi_enable_dhcp.sh &> ${logfile}
Copy the script file to .adds/kbmenu_user/scripts, and start it by selecting:
Code:
"user scripts" > "debug enable wifi.sh"
Alternatively, you can execute the following line in the KBTerminal, with "file mode" selected.
Code:
sh -x ${ksmroot}/scripts_intern/wifi/wifi_enable_dhcp.sh
Or maybe you could first check whether the variables are set correctly:
Code:
#wifi_variables_test.sh
logfile=${ksmuser}/txt/wifi_variables_test.txt
echo "WIFI_MODULE: ${WIFI_MODULE}" > "${logfile}"
echo "PLATFORM: ${PLATFORM}" >> "${logfile}"
echo "INTERFACE: ${INTERFACE}" >> "${logfile}"