View Single Post
Old 01-24-2018, 04:57 PM   #992
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by dnh View Post
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}"

Last edited by tshering; 01-24-2018 at 05:28 PM.
tshering is offline   Reply With Quote