ripdog
New Around Here
So I'm trying to get my router to automatically update my IP with unotelly when a connection is established. I can't figure out why it doesn't work, though...
When I run
It works fine. However, ./wan-start doesn't work, and the router doesn't run the script by itself. My connection is plain old DHCP over fibre, with a cloned MAC address for authentication.
Code:
admin@router:/jffs/scripts# cat wan-start
#! /bin/bash
touch /tmp/000wanstarted
#sh /jffs/scripts/tunnelupdate.sh
sh unotelly.sh
admin@router:/jffs/scripts# ls -la
drwxr-xr-x 2 admin root 0 Jun 26 00:53 .
drwxr-xr-x 5 admin root 0 Jun 26 01:01 ..
-rwxrwxrwx 1 admin root 1299 May 1 03:58 tunnelupdate.sh
-rwxrwxrwx 1 admin root 148 May 1 19:18 unotelly.sh
-rwxrwxrwx 1 admin root 87 Jun 26 00:41 wan-start
admin@router:/jffs/scripts# ./wan-start
-sh: ./wan-start: not found
When I run
Code:
sh wan-start