On OpenWRT, I have a Lua script on_new_device.lua that runs fine if I execute lua on_new_device.lua; however, I'd like to run it simply by executing ./on_new_device.lua.
Executing ./on_new_device.lua returns this error...
root@router:~# ./on_new_device.lua
-ash: ./on_new_device.lua: not found
The file has execute permissions...
root@router:~# ls -la ./on_new_device.lua
-rwxrwxrwx 1 root root 1094 Jun 18 11:06 ./on_new_device.lua
The file starts with #!/usr/bin/lua...
root@router:~# head -1 ./on_new_device.lua
#!/usr/bin/lua
How can I execute this file directly?