Author
Message
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Posted: Wed Jul 08, 2015 12:34 Post subject:
I'm need something via scripts.
I need open ssh connection and run script where must be;
- disable wan ;
- disable dhcp server;
- assign WAN Port to Switch
Another script:
- disable wan;
- disable dhcp server
- reconfigure LAN PORT (for example , port 2) - to WAN port
- enable wan on new WAN port
Please help, how do this via scripts;
How run this scripts automatically via ssh ?
or
How run this scripts automatically via web interface maybe ?
Thank you guys, please help !
Back to top
Sponsor
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Posted: Wed Jul 08, 2015 14:56 Post subject:
What equivalent shell command for "Apply settings" command ?
Back to top
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Back to top
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Posted: Thu Jul 09, 2015 16:26 Post subject:
Anybody cam answer or NOT
My firmware - DD-WRT v3.0-r27506 (07/09/15) std
Guys, i'm try install opkg by this instruction :
http://www.dd-wrt.com/wiki/index.php/JFFS
After that line :
cd /tmp
wget http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/opkg_513-2_ar71xx.ipk
i cannot run this line : Code: ipkg install /tmp/opkg_513-2_ar71xx.ipk
Code: ipkg_install_file: ERROR: File not found
Ok, i try
Code: ipkg -d /jffs install /tmp/opkg_513-2_ar71xx.ipk
- install succeed, but i cannot run this command :
Code: root@DD-WRT:/tmp# /jffs/bin/opkg
-sh: /jffs/bin/opkg: not found
I'm cannot run any commands on this fuc**** router , except /bin/busybox and /bin/ipkg ... !!!
What wrong with me ...
Back to top
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Back to top
KrypteX DD-WRT Guru Joined: 18 Jan 2014 Posts: 2411
Back to top
tatsuya46 DD-WRT Guru Joined: 03 Jan 2010 Posts: 7568 Location: YWG, Canada
Posted: Thu Jul 09, 2015 21:01 Post subject:
this router is one of the worst of the 8mb ones for flash space..its limit is far less than even 6.5mb... _________________LATEST FIRMWARE(S)
BrainSlayer wrote: we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers
[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std
Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..
Back to top
bondpard DD-WRT Novice Joined: 03 May 2015 Posts: 20
Posted: Fri Jul 10, 2015 4:35 Post subject:
Is it worth (or safe) to update an 825 C1 from 26653 to 27506 ?
Back to top
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Posted: Fri Jul 10, 2015 9:25 Post subject:
Please, help me
Back to top
andreyua DD-WRT User Joined: 16 Jun 2010 Posts: 64
Posted: Fri Jul 10, 2015 22:51 Post subject:
-sh: opkg: not found
I found the reason, opk not found because:
- let's view headers of this file by
We have:
Code: Elf file type is EXEC (Executable file)
Entry point 0x4025d0
There are 7 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x00400034 0x00400034 0x000e0 0x000e0 R E 0x4
INTERP 0x000114 0x00400114 0x00400114 0x00014 0x00014 R 0x1
[Requesting program interpreter: /lib/ld-uClibc.so.0]
LOAD 0x000000 0x00400000 0x00400000 0x15d50 0x15d50 R E 0x10000
LOAD 0x016000 0x00426000 0x00426000 0x00928 0x00b18 RW 0x10000
DYNAMIC 0x000128 0x00400128 0x00400128 0x00118 0x00118 RWE 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
NULL 0x000000 0x00000000 0x00000000 0x00000 0x00000 0x4
AND the reason is - Requesting program interpreter: /lib/ld-uClibc.so.0 NOT EXIST IN /LIB/ in our router
just load opkg to hex editor (winhex as example) and changes bytes from /lib/ld-uClibc.so.0 - to /jffs/lduClibc.so.0 (as example)
/jffs/lduClibc.so.0 must be copied or create symbolic link
after this manipulation opkg will work !!!
Back to top
Drek DD-WRT User Joined: 28 Sep 2008 Posts: 218
Posted: Fri Jul 10, 2015 23:03 Post subject:
Thanks for posting andre. Hopefully someone will find this useful. _________________ Netgear XR500
Rogers Ignite Cable
150mbps down/15mbps up
Back to top
silicon DD-WRT Novice Joined: 11 Jul 2015 Posts: 24
Posted: Sat Jul 11, 2015 21:28 Post subject:
What firmware revision people are using successfully to setup OpenVPN on DIR-825? I've flashed several versions and some seem to function and some don't so I'd just like to get an input on what's working well.
Back to top
mrchow21 DD-WRT Novice Joined: 03 Jul 2015 Posts: 10
Posted: Sun Jul 12, 2015 9:56 Post subject:
silicon wrote: What firmware revision people are using successfully to setup OpenVPN on DIR-825? I've flashed several versions and some seem to function and some don't so I'd just like to get an input on what's working well.
Running OpenVPN in server mode with r27456.
Back to top
silicon DD-WRT Novice Joined: 11 Jul 2015 Posts: 24
Posted: Mon Jul 13, 2015 0:13 Post subject:
Thank you mrchow21. I'm guessing you when you set it up you chose the most recent firmware version at the time but by any chance did you try versions 27490 or 27506?
Back to top
bondpard DD-WRT Novice Joined: 03 May 2015 Posts: 20
Posted: Sun Jul 19, 2015 6:11 Post subject:
Wow a kernel update, i can't believe it
Things are working much better with 825 rev C, not having any troubles with HT40/HT20, working as expected and stable; r27506
Back to top