Thanks for catching that.
( most of the following is for the tech that's been helping me)
I still don't know what I'm being told to input.
So I added " " to the only input I've been given. (vi /usr/bin/switch_sim_slot)
I do not know if this is what I was told to do.
I do not understand if that's what I was being told to do why it wasn't just typed out:
input the following, vi /usr/bin/"switch_sim_slot"
Therefore I have no idea if I did what was asked.
I also don't know what you mean when you say "try test"
Maybe if I was more familiar with code I wouldn't be so frustrated with this seemingly cryptic instruction.
I was expecting the tech to log in through goodcloud yesterday where they could maybe input this code?
I'd like to know if this is individual device dependent or if all of the x3000s revert to the wrong APN settings on power cycle/disruption.
I've been pretty patient for over two weeks talking to tech and having them goocloud into my device. To be fair, my concerns have switched from one thing to another as the other has manifested but I don't see that my participation is of much use.
Surely you can test and fix your own devices in house?
I think I need a break from this.
Email me if you fix it.
login as: root
root@192.168.8.1's password:
BusyBox v1.33.2 (2024-08-24 01:57:23 UTC) built-in shell (ash)
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|_____|| |||||___||| |____|
|| W I R E L E S S F R E E D O M
OpenWrt 21.02-SNAPSHOT, r15812+880-46b6ee7ffc
root@GL-X3000:~# vi /usr/bin/"switch_sim_slot"
#!/bin/sh
. /lib/functions.sh
. /lib/functions/modem.sh
. /lib/netifd/netifd-proto.sh
while true
do
pid=ps -w | grep verizon_apn.sh | grep -v grep
[ "$pid" != "" ] && {
sleep 1
delay=1
continue
}
break
done
[ "$delay" = "1" ] && sleep 5
trap 'dual_unlock;exit' INT TERM
redial_sim=''
echo_ssh() {
terminals=$(ls /dev/pts/* 2>/dev/null)
for terminal in $terminals; do
echo $1 >$terminal
done
echo $1 >/dev/console
}
dual_lock()
{
# echo_ssh "==== switch start ..."
echo "lock" > /var/run/dual_sim/$iface/status
touch /var/run/switch-sim.lock
}
dual_unlock()
{
# echo_ssh "==== switch end ..."
echo "unlock" > /var/run/dual_sim/$iface/status
[ -n "$AT_CMD" ] && {
for i in $(seq 1 3)
do
local slot=""
slot=$($AT_CMD AT+QUIMSLOT? | grep "+QUIMSLOT:" | tr -cd "0-9")
[ -n "$(echo $slot | grep [0-9])" ] && {
echo "$slot" > /var/run/dual_sim/$iface/current_sim
break
}
done
}
rm /var/run/switch-sim.lock 2>/dev/null
}
handle_profile()
{
if [ "$1" = "$2" ]; then
iface=$3
local protocol device auth apn description apns apn_use
config_get protocol "$1" protocol "qcm"
config_get device "$1" device
config_get auth "$1" auth
config_get apn "$1" apn
config_get apns "$1" apns
config_get apn_use "$1" apn_use
config_get description "$1" description
config_get service "$1" service #3g CDCWDMA
config_get dialnumber "$1" dialnumber #3g #9999
config_get auth "$1" auth "NONE" #NONE CHAP,PAP/CHAP
config_get username "$1" username #auth NONE
config_get password "$1" password #auth NONE
config_get pincode "$1" pincode
config_get metric "$1" metric 40
config_get ttl "$1" ttl
config_get ttl_ipv6 "$1" ttl_ipv6
config_get mtu "$1" mtu
config_get roaming "$1" roaming "0"
config_get band_enable "$1" band_enable "0"
config_get band_list "$1" band_list
config_get band_filter_mode "$1" band_filter_mode
- /usr/bin/switch_sim_slot 1/544 0%