M
M@rco
Guest
Hi, I am going to be trying to add a VLAN to port 4 on my RT-AC68 with Merlin firmware and am a COMPLETE noob.
1. Is there any specific naming convention/specific names for the scripts I will be adding to the jffs/scripts directory? (I assume I will be adding a new script and not modifying an existing one.)
2. If I use notepad++ as an editor, how do I make the script executable?
3. Could I use something like WinSCP and drag/drop a file I created with Notepad++ into the jffs/scripts directory? If so, how do I make it executable?
I can't help you in regards to your VLAN questions, as I don't have enough knowledge of it, but will do an attempt to answer your other questions:
1. You can find all you need about the user scripts here: https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
2. If you use Notepad++, make sure you set the file format to Unix (LF) before saving it. You can right click the file format the status bar at the bottom, which by default says Windows (CR LF). Just right click and select Unix (LF).
Your file is now ready for upload. If you edit an existing script, for example by opening it in WinSCP, it'll automatically switch to the correct mode. It's usefull (at least, I think so) to set Notepad++ as default editor in WinSCP.
3. WinSCP can be used perfectly to edit, download and upload files. You can also change permissions using WinSCP, to make a script executable for example. Just right click the file, choose Properties and tick the box(es) under 'X' (for executable).
The same thing can be easily achieved by starting an SSH session and executing
Code:
chmod u+x /pathtofile/script.sh
One last remark: placing your router on such short distance of your television will most likely cause a lot of interference. If you have any issues with WiFi or issues with the TV, I'd suggest you try placing your router elsewhere.
Edit: The screenshots above are in Dutch, sorry for that, but I couldn't figure out quickly how to change the language in Notepad++. The layout in English is exactly the same though.
Last edited by a moderator: