I have a wan-start script in my /jffs/scripts folder. It looks like this:
When I try to execute it from a telnet session I get :
This happens whn I try to execute the script using "wan-start", "./wan-start" or "/jffs/scripts/wan-start". Here is an ls for my jffs/scripts folder.
My router is an Asus RT-N66U and my firmware is 374.40 (Merlin Build).
Anyone have any ideas?
p.s The purpose of this script is to allow me to access the web UI of my cable modem at the 192.168.100.1 IP.
Code:
#!/bin/sh
logger -t $(basename $0) $1
ifconfig `nvram get wan_ifnames`:0 192.168.100.2 netmask 255.255.255.0
iptables -t nat -I POSTROUTING -o `nvram get wan_ifnames` -j MASQUERADE
Code:
-sh: wan-start: not found
Code:
drwxr-xr-x 2 wayne root 0 Apr 19 00:58 .
drwxr-xr-x 5 wayne root 0 Dec 31 1969 ..
-rwxrwxrwx 1 wayne root 184 Sep 14 11:29 wan-start
Anyone have any ideas?
p.s The purpose of this script is to allow me to access the web UI of my cable modem at the 192.168.100.1 IP.