Re: 3g_tty_list

Home Page Forums Network Management ZeroShell 3G CDMA Modem Re: 3g_tty_list

#47413

kasus
Member

Fulvio, this is very important!
When I pluged in my USB modem it was detected as /udev/ttyACM0. But webUI says me that there ano no detected modems. So, I modify /root/kerbynet.cgi/scripts/3g_tty_list:

#!/bin/sh
. /etc/kerbynet.conf
. $SCRIPTS/net.inc
CONFIG="/udev"
cd $CONFIG
INTERFACES=`ls -d ttyUSB* 2>/dev/null`
if [ -z "$INTERFACES" ] ; then
INTERFACES=`ls -d ttyACM* 2>/dev/null`
fi
if [ -z "$INTERFACES" ] ; then
echo "Not detected"
exit
fi
for I in $INTERFACES ; do
echo "$I"
done

When I modify this script, modem in the Web Intreface was sucessfuly detected. You can add this upgrade to solve problems with ACM devices.
This is very bad solve of this problem, but it works for me…