winXPHE said:hey how do you get scheduling to work in transmission. for those with night unlimited plans?
google got me this
For different times / days, you could just create entries in your crontab to start / stop the transmission-deamon at certain times.
My solution to this is this Python script:
http://gist.github.com/642874
1. Make sure you have installed transmission-remote
2. Enable web client in Transmission (allow only for 127.0.0.1, do not use authentication)
In addition to that your could also schedule it to connect at a specific time.
I wrote a shell script with a simple graphical user interface to help with that. Check it out at https://launchpad.net/autoconnect
care to simplify and put it in the guide. in the settings.json or wherever it goes
---------------------------------
have a problem. i flash with dd-wrt and wan ip shows. i edit wan settings to ppoe, enter my Username and password of ISP. and DNS1 and DNS2 and save settings and then wan ip becomes 0.0.0.0
what should i do. i tried reflashing several times. hard reboot, the 30/30/30 reboot
there is no ip conflict as i set the router ip to 192.168.2.1 and modem ip is 192.168.1.1
the wan ip goes out as soon as i save settings for ppoe. pls help
echo '0 20 * * * root killall transmission-daemon' >> /tmp/crontab
echo '1 20 * * * root /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon' >> /tmp/crontab
anu0512 said:How to switch off wifi without plug out the adapter ? I'm on Firmware Version: 2.0.2.0.
dinjo said:Save this in your startup it would kill transmission at 08:00 PM at night and will start at 08:01PMR
Code:echo '0 20 * * * root killall transmission-daemon' >> /tmp/crontab echo '1 20 * * * root /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon' >> /tmp/crontab
I can get to ddwrt page with 192.168.1.1 from my PC .. I want to log in from internet to control my torrents. Whenever I try to login with ext IP it points to my bsnl modem page..dinjo said:If you have done exactly the way mentioned http://192.168.1.1 should point to your Router DD WRT page.
option verbose-wget ##################This line will have a # prefix to it , remove it
sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz
httpd: bind: Address already in use
please elaborate. i didnt understand muchWith the command above you get the basic folder structure of:
Code:
/mnt/data/torrents/.config/
/mnt/data/torrents/.config/transmission-daemon
/mnt/data/torrents/.config/transmission-daemon/settings.json #file
/mnt/data/torrents/.config/transmission-daemon/stats.json #file
/mnt/data/torrents/.config/transmission-daemon/blocklists
/mnt/data/torrents/.config/transmission-daemon/resume
/mnt/data/torrents/.config/transmission-daemon/torrents
onwards i dont get no echo. is that regular. or did nothing happen?Started and stopped Transmission to get the basic work folders
root@rt-n13u b1:/opt/etc# ipkg install xinetd htop nano samba2 vsftpd tftp-hpa wget; killall xinetd
smbd nmbd
rm /opt/etc/samba/smb.conf /opt/etc/vsftpd.conf /opt/etc/init.d/S80samba /opt/etc/xinetd.d/tftp
wget [url]http://home.karneval.cz/10102207/opt.gz[/url] -P /opt; tar -xvzf /opt/opt.gz -C /opt
sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gzInstalling xinetd (2.3.14-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/xinetd_2.3.14-11_mipsel.ip[/url]
Installing psmisc (22.13-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/psmisc_22.13-1_mipsel.ipk[/url]
Installing ncurses (5.7-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ncurses_5.7-1_mipsel.ipk[/url]
Installing htop (0.8.3-2) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/htop_0.8.3-2_mipsel.ipk[/url]
Installing nano (2.2.6-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/nano_2.2.6-1_mipsel.ipk[/url]
Installing samba2 (2.2.12-4) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/samba2_2.2.12-4_mipsel.ipk[/url]
package samba2 suggests installing cups
Installing vsftpd (2.3.4-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/vsftpd_2.3.4-1_mipsel.ipk[/url]
Installing tftp-hpa (5.0-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/tftp-hpa_5.0-1_mipsel.ipk[/url]
Installing wget (1.12-2) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/wget_1.12-2_mipsel.ipk[/url]
Configuring htop
Configuring nano
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring psmisc
update-alternatives: Linking //opt/bin/killall to /opt/bin/psmisc-killall
update-alternatives: Linking //opt/bin/pidof to /opt/bin/psmisc-killall
Configuring samba2
Installing 'swat 901/tcp' to /etc/services ...
Please edit config (/opt/etc/samba/smb.conf).
After verify your smb.conf file with command testparm,
modify and execute /opt/etc/init.d/S80samba to activate the samba.
Test Samba daemons with smbclient -L localhost -N
WWW admin and reading documentation is possible if xinetd is installed.
Point your browser to eg. [url]http://192.168.1.1:901/[/url] to access SWAT server.
Configuring tftp-hpa
Configuring vsftpd
You'll need to add line like
echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf
to your /unslung/rc.xinetd file -- see the wiki at [url]http://www.nslu2-linux.org[/url] for more info
postinst script returned status 1
ERROR: vsftpd.postinst returned 1
Configuring wget
Configuring xinetd
Warning: the current only_from configuration in /opt/etc/xinetd.conf is
only_from = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
change to your subnet accordingly and tighten security!
Successfully terminated.
root@rt-n13u b1:/opt/etc# rm /opt/etc/samba/smb.conf /opt/etc/vsftpd.conf /opt/etc/init.d/S80samba
/opt/etc/xinetd.d/tftp
root@rt-n13u b1:/opt/etc# wget [url]http://home.karneval.cz/10102207/opt.gz[/url] -P /opt; tar -xvzf /opt/opt.
z -C /opt
Connecting to home.karneval.cz (80.109.240.73:80)
opt.gz 100% |***************************************************| 1256k 00:00:00 ETA
bin/
bin/httpd
etc/
etc/xinetd.d/
etc/xinetd.d/netbios-ns
etc/xinetd.d/netbios-ssn
etc/xinetd.d/httpd
etc/xinetd.d/vsftpd
etc/xinetd.d/tftp
etc/samba/
etc/samba/smb.conf
etc/vsftpd.conf
etc/init.d/
etc/init.d/S10xinetd
etc/init.d/S10httpd
sbin/
sbin/i
sbin/it
sbin/w
sbin/e
sbin/x
sbin/d
share/
share/www/
share/www/index.html
share/dlq/
share/dlq/letitbit.net.sh
share/dlq/dlq.passwords
share/dlq/dlq-stop.sh
share/dlq/hotfile.com.sh
share/dlq/vip-file.com.sh
share/dlq/dlq-background.sh
share/dlq/letitbit.net.captcha.sh
share/dlq/files.queue
share/dlq/dlq.sh
share/dlq/rapidshare.com.sh
share/dlq/downloads/
share/dlq/depositfiles.com.sh
tftpboot/
tftpboot/Boot/
tftpboot/Boot/readme.txt
tftpboot/Boot/BCD
tftpboot/Boot/bootmgr.exe
tftpboot/Boot/startrom.0
tftpboot/Boot/boot.sdi
tftpboot/Boot/setup.exe
tftpboot/pmagic/
tftpboot/pmagic/readme.txt
tftpboot/dos/
tftpboot/dos/readme.txt
tftpboot/pxelinux.0
tftpboot/bootmgr.exe
tftpboot/pxelinux.cfg/
tftpboot/pxelinux.cfg/default
tftpboot/boot.txt
tftpboot/memtest/
tftpboot/memtest/memtest
tftpboot/memdisk
tftpboot/tftpd.remap
root@rt-n13u b1:/opt/etc# sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz
httpd: bind: Address already in use
root@rt-n13u b1:/opt/etc# sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz
httpd: bind: Address already in use
root@rt-n13u b1:/opt/etc# cd /mnt
root@rt-n13u b1:/mnt# mkdir -p /mnt/data/torrents
root@rt-n13u b1:/mnt# sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz
httpd: bind: Address already in use
root@rt-n13u b1:/mnt# /opt/bin/ipkg-opt -verbose_wget install transmission
Installing transmission (2.41-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/transmission_2.41-1_mipselipk[/url]
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
transmission_2.41-1_ 100% |***************************************************| 1657k 00:00:00 ETA
Installing openssl (0.9.7m-5) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/openssl_0.9.7m-5_mipsel.ip[/url]
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
openssl_0.9.7m-5_mip 100% |***************************************************| 693k 00:00:00 ETA
Installing libcurl (7.21.7-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libcurl_7.21.7-1_mipsel.ip[/url]
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
libcurl_7.21.7-1_mip 100% |***************************************************| 337k 00:00:00 ETA
Installing zlib (1.2.5-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/zlib_1.2.5-1_mipsel.ipk[/url]
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
zlib_1.2.5-1_mipsel. 100% |***************************************************| 73528 00:00:00 ETA
Installing libevent (2.0.11-1) to /opt/...
Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libevent_2.0.11-1_mipsel.ik[/url]
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
libevent_2.0.11-1_mi 100% |***************************************************| 301k 00:00:00 ETA
Configuring libcurl
Configuring libevent
Configuring openssl
Configuring transmission
Configuring vsftpd
You'll need to add line like
echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf
to your /unslung/rc.xinetd file -- see the wiki at [url]http://www.nslu2-linux.org[/url] for more info
Configuring zlib
Successfully terminated.
root@rt-n13u b1:/mnt# /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemo
root@rt-n13u b1:/mnt# killall transmission-daemon
root@rt-n13u b1:/mnt# wget [url]http://www.3iii.dk/linux/optware/settings.json[/url] -O /mnt/data/torrents/.co
fig/transmission-daemon/settings.json
Connecting to [url]www.3iii.dk[/url] (193.202.110.52:80)
root@rt-n13u b1:/mnt# /usr/sbin/iptables -I INPUT 1 -p tcp --dport 25000 -j logaccept
root@rt-n13u b1:/mnt# /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemo
winXPHE said:n00b alert. few questions.
how?
Use vi or nano editor.
i get
You should know what you are doing here.
please elaborate. i didnt understand much
Its creating folders, can't explain any furth
and from
onwards i dont get no echo. is that regular. or did nothing happen?
???
--- Updated Post - Automerged ---
ill just post the whole thing
Code:root@rt-n13u b1:/opt/etc# ipkg install xinetd htop nano samba2 vsftpd tftp-hpa wget; killall xinetd smbd nmbd rm /opt/etc/samba/smb.conf /opt/etc/vsftpd.conf /opt/etc/init.d/S80samba /opt/etc/xinetd.d/tftp wget [url]http://home.karneval.cz/10102207/opt.gz[/url] -P /opt; tar -xvzf /opt/opt.gz -C /opt sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gzInstalling xinetd (2.3.14-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/xinetd_2.3.14-11_mipsel.ip[/url] Installing psmisc (22.13-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/psmisc_22.13-1_mipsel.ipk[/url] Installing ncurses (5.7-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ncurses_5.7-1_mipsel.ipk[/url] Installing htop (0.8.3-2) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/htop_0.8.3-2_mipsel.ipk[/url] Installing nano (2.2.6-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/nano_2.2.6-1_mipsel.ipk[/url] Installing samba2 (2.2.12-4) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/samba2_2.2.12-4_mipsel.ipk[/url] package samba2 suggests installing cups Installing vsftpd (2.3.4-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/vsftpd_2.3.4-1_mipsel.ipk[/url] Installing tftp-hpa (5.0-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/tftp-hpa_5.0-1_mipsel.ipk[/url] Installing wget (1.12-2) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/wget_1.12-2_mipsel.ipk[/url] Configuring htop Configuring nano Configuring ncurses update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear Configuring psmisc update-alternatives: Linking //opt/bin/killall to /opt/bin/psmisc-killall update-alternatives: Linking //opt/bin/pidof to /opt/bin/psmisc-killall Configuring samba2 Installing 'swat 901/tcp' to /etc/services ... Please edit config (/opt/etc/samba/smb.conf). After verify your smb.conf file with command testparm, modify and execute /opt/etc/init.d/S80samba to activate the samba. Test Samba daemons with smbclient -L localhost -N WWW admin and reading documentation is possible if xinetd is installed. Point your browser to eg. [url]http://192.168.1.1:901/[/url] to access SWAT server. Configuring tftp-hpa Configuring vsftpd You'll need to add line like echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf to your /unslung/rc.xinetd file -- see the wiki at [url]http://www.nslu2-linux.org[/url] for more info postinst script returned status 1 ERROR: vsftpd.postinst returned 1 Configuring wget Configuring xinetd Warning: the current only_from configuration in /opt/etc/xinetd.conf is only_from = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 change to your subnet accordingly and tighten security! Successfully terminated. root@rt-n13u b1:/opt/etc# rm /opt/etc/samba/smb.conf /opt/etc/vsftpd.conf /opt/etc/init.d/S80samba /opt/etc/xinetd.d/tftp root@rt-n13u b1:/opt/etc# wget [url]http://home.karneval.cz/10102207/opt.gz[/url] -P /opt; tar -xvzf /opt/opt. z -C /opt Connecting to home.karneval.cz (80.109.240.73:80) opt.gz 100% |***************************************************| 1256k 00:00:00 ETA bin/ bin/httpd etc/ etc/xinetd.d/ etc/xinetd.d/netbios-ns etc/xinetd.d/netbios-ssn etc/xinetd.d/httpd etc/xinetd.d/vsftpd etc/xinetd.d/tftp etc/samba/ etc/samba/smb.conf etc/vsftpd.conf etc/init.d/ etc/init.d/S10xinetd etc/init.d/S10httpd sbin/ sbin/i sbin/it sbin/w sbin/e sbin/x sbin/d share/ share/www/ share/www/index.html share/dlq/ share/dlq/letitbit.net.sh share/dlq/dlq.passwords share/dlq/dlq-stop.sh share/dlq/hotfile.com.sh share/dlq/vip-file.com.sh share/dlq/dlq-background.sh share/dlq/letitbit.net.captcha.sh share/dlq/files.queue share/dlq/dlq.sh share/dlq/rapidshare.com.sh share/dlq/downloads/ share/dlq/depositfiles.com.sh tftpboot/ tftpboot/Boot/ tftpboot/Boot/readme.txt tftpboot/Boot/BCD tftpboot/Boot/bootmgr.exe tftpboot/Boot/startrom.0 tftpboot/Boot/boot.sdi tftpboot/Boot/setup.exe tftpboot/pmagic/ tftpboot/pmagic/readme.txt tftpboot/dos/ tftpboot/dos/readme.txt tftpboot/pxelinux.0 tftpboot/bootmgr.exe tftpboot/pxelinux.cfg/ tftpboot/pxelinux.cfg/default tftpboot/boot.txt tftpboot/memtest/ tftpboot/memtest/memtest tftpboot/memdisk tftpboot/tftpd.remap root@rt-n13u b1:/opt/etc# sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz httpd: bind: Address already in use root@rt-n13u b1:/opt/etc# sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz httpd: bind: Address already in use root@rt-n13u b1:/opt/etc# cd /mnt root@rt-n13u b1:/mnt# mkdir -p /mnt/data/torrents root@rt-n13u b1:/mnt# sh /opt/etc/init.d/S10httpd; sh /opt/etc/init.d/S10xinetd; rm /opt/opt.gz httpd: bind: Address already in use root@rt-n13u b1:/mnt# /opt/bin/ipkg-opt -verbose_wget install transmission Installing transmission (2.41-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/transmission_2.41-1_mipselipk[/url] Connecting to ipkg.nslu2-linux.org (140.211.169.161:80) transmission_2.41-1_ 100% |***************************************************| 1657k 00:00:00 ETA Installing openssl (0.9.7m-5) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/openssl_0.9.7m-5_mipsel.ip[/url] Connecting to ipkg.nslu2-linux.org (140.211.169.161:80) openssl_0.9.7m-5_mip 100% |***************************************************| 693k 00:00:00 ETA Installing libcurl (7.21.7-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libcurl_7.21.7-1_mipsel.ip[/url] Connecting to ipkg.nslu2-linux.org (140.211.169.161:80) libcurl_7.21.7-1_mip 100% |***************************************************| 337k 00:00:00 ETA Installing zlib (1.2.5-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/zlib_1.2.5-1_mipsel.ipk[/url] Connecting to ipkg.nslu2-linux.org (140.211.169.161:80) zlib_1.2.5-1_mipsel. 100% |***************************************************| 73528 00:00:00 ETA Installing libevent (2.0.11-1) to /opt/... Downloading [url]http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libevent_2.0.11-1_mipsel.ik[/url] Connecting to ipkg.nslu2-linux.org (140.211.169.161:80) libevent_2.0.11-1_mi 100% |***************************************************| 301k 00:00:00 ETA Configuring libcurl Configuring libevent Configuring openssl Configuring transmission Configuring vsftpd You'll need to add line like echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf to your /unslung/rc.xinetd file -- see the wiki at [url]http://www.nslu2-linux.org[/url] for more info Configuring zlib Successfully terminated. root@rt-n13u b1:/mnt# /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemo root@rt-n13u b1:/mnt# killall transmission-daemon root@rt-n13u b1:/mnt# wget [url]http://www.3iii.dk/linux/optware/settings.json[/url] -O /mnt/data/torrents/.co fig/transmission-daemon/settings.json Connecting to [url]www.3iii.dk[/url] (193.202.110.52:80) root@rt-n13u b1:/mnt# /usr/sbin/iptables -I INPUT 1 -p tcp --dport 25000 -j logaccept root@rt-n13u b1:/mnt# /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemo
try and be a little easy on me
dude i think you got me wrong. i was just askingwinXPHE said:hey how do you get scheduling to work in transmission. for those with night unlimited plans?
google got me this
For different times / days, you could just create entries in your crontab to start / stop the transmission-deamon at certain times.
My solution to this is this Python script:
http://gist.github.com/642874
1. Make sure you have installed transmission-remote
2. Enable web client in Transmission (allow only for 127.0.0.1, do not use authentication)
In addition to that your could also schedule it to connect at a specific time.
I wrote a shell script with a simple graphical user interface to help with that. Check it out at https://launchpad.net/autoconnect
care to simplify and put it in the guide. in the settings.json or wherever it goes
---------------------------------
have a problem. i flash with dd-wrt and wan ip shows. i edit wan settings to ppoe, enter my Username and password of ISP. and DNS1 and DNS2 and save settings and then wan ip becomes 0.0.0.0
what should i do. i tried reflashing several times. hard reboot, the 30/30/30 reboot
there is no ip conflict as i set the router ip to 192.168.2.1 and modem ip is 192.168.1.1
the wan ip goes out as soon as i save settings for ppoe. pls help
I wrote a shell script with a simple graphical user interface to help with that. Check it out at https://launchpad.net/autoconnect
Thanx buddy, I think its workin for me, it will be great if we can mount fs locally, also I have read about custom/mod fw for b1 which support this feature along with several other but didnt find the link to download it @ ddwrt forumdinjo said:Switch on the modem wait for adsl to get stable I.e connected then start your router 100% mounting of drives.
Or you can add fs drivers in your hdd itself then no internet needed to mount the drive but this process is not simple if u don't know abt linux I'm trying to write a script which would add this fs support within the hdd if that works out then it would be easier for all.
is this the b1 version ? Any idea ?dinjo said:So why did you said you have written the script there could several impact if a new user comes and uses the script and it turns out its not working as planned.My point do not advice others to use a thing when you are not really sure what could be the impact.
For your question for editing :-
After you have made the changes Press Esc then :wq and then enter to save and quit.
--- Updated Post - Automerged ---
Just to let you guys know primeabgb seems to have some stock
http://www.techenclave.com/primeabgb/asus-rt-n13u-wireless-n-router-201912.html