Well, where do I add the starting numbers of the IP address? It is more than one10.90 and 100.50 and other. Can you help me and write the command for me?
Also, can I cancel the command easily, or will it be canceled if I close the Telnet or ssh session?
this is a special script, so called plugin which extends owrt's hot-plug system. it is an event based solution to react on special events like wan interfaces is being activated in this case.
when owrt detects that wan interface is being activated, i.e. when receiving an ip address from your ISP it fires an event which triggers this script. this will check the new ip address if does not meet your criteria ( 10.125.*|10.145.*|10.150.*|100.90.* ) will reconnect automatically. this will be repeated until you got a "good" ip, so you cannot stop it. but if you extend the script like:
cat << "EOF" > /etc/hotplug.d/iface/10-wan-ipaddr
if [ -f /tmp/wan_ip_ok ] then
rm /tmp/wan_ip_ok
exit 0
fi
if [ "${ACTION}" != "ifup" ] \
&& [ "${ACTION}" != "ifupdate" ]
then exit 0
fi
if [ "${ACTION}" = "ifupdate" ] \
&& [ -z "${IFUPDATE_ADDRESSES}" ] \
&& [ -z "${IFUPDATE_DATA}" ]
then exit 0
fi
. /lib/functions/network.sh
network_flush_cache
network_find_wan NET_IF
network_get_ipaddr NET_ADDR "${NET_IF}"
if [ "${NET_IF}" != "${INTERFACE}" ]
then exit 0
fi
case ${NET_ADDR} in
(10.125.*|10.145.*|10.150.*|100.90.*) exit 0 ;;
esac
sleep 10
ifup "${INTERFACE}"
EOF
and create via SSH a file /tmp/wan_ip_ok ( touch /tmp/wan_ip_ok ) it will not try to get a new ip address. or if you count times this plugin runs and limit after 10 runs for example.