Asus RT-N13U B1 - DD-wrt thread

distro

Adept
Mar 16, 2010
524
58
66
#sanDJ

Use putty to ssh into your router, for login and pass check the OP

After u login , put your mentioned command lines one by one, each line is a command, let it execute then go for next cmd.
 

ramkrsn

Disciple
Mar 27, 2012
26
0
1
@dinjo

need assistance bro

now again putty says

DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH

Release: 03/19/12 (SVN revision: 18777)

DD-WRT login: root

Password:

==========================================================

____ ___ __ ______ _____ ____ _ _

| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |

|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_

||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|

|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2

http://www.dd-wrt.com

==========================================================

BusyBox v1.19.4 (2012-03-19 14:27:37 CET) built-in shell (ash)

Enter 'help' for a list of built-in commands.

root@DD-WRT:~# cd /tmp

root@DD-WRT:/tmp# mount

rootfs on / type rootfs (rw)

/dev/root on / type squashfs (ro,relatime)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

ramfs on /tmp type ramfs (rw,relatime)

none on /dev type tmpfs (rw,relatime,size=512k)

devpts on /dev/pts type devpts (rw,relatime,mode=600)

devpts on /proc/bus/usb type usbfs (rw,relatime)

/dev/sda1 on /opt type ext2 (rw,relatime,errors=continue)

root@DD-WRT:/tmp#
 

dinjo

Hell Yeah[Born Critic]
Skilled
Sep 14, 2009
6,341
205
203
Mumbai
Can you try running each commands from startup script on putty except for rm line it would be good enough to debug the issue, if you still can't get it working I can run a team viewer session to see any problem but try first and show me what did you do
 

ramkrsn

Disciple
Mar 27, 2012
26
0
1
okay bro doing that now

here you go brother...

DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH

Release: 03/19/12 (SVN revision: 18777)

DD-WRT login: root

Password:

==========================================================

____ ___ __ ______ _____ ____ _ _

| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |

|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_

||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|

|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2

http://www.dd-wrt.com

==========================================================

BusyBox v1.19.4 (2012-03-19 14:27:37 CET) built-in shell (ash)

Enter 'help' for a list of built-in commands.

root@DD-WRT:~# mkdir /tmp/etc/config

root@DD-WRT:~# echo "wget http://home.karneval.cz/10102207/fs.gz -P /tmp/root" >> /tmp/etc/config/fs.wanup

root@DD-WRT:~# echo "tar -xvzf /tmp/root/fs.gz -C /tmp/root" >> /tmp/etc/config/fs.wanup

root@DD-WRT:~# echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup

root@DD-WRT:~# echo "mount -o rw -t ext3 /dev/discs/disc0/part1 /opt" >> /tmp/etc/config/fs.wanup

root@DD-WRT:~# echo "mount -o rw -t ext3 /dev/discs/disc0/part2 /mnt" >> /tmp/etc/config/fs.wanup

root@DD-WRT:~# echo 128 > /sys/block/sda/device/max_sectors

root@DD-WRT:~# chmod +x /tmp/etc/config/fs.wanup

root@DD-WRT:~# echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd

root@DD-WRT:~# echo 1 > /sys/class/scsi_disk/0:0:0:0/allow_restart

root@DD-WRT:~# wget http://www.3iii.dk/linux/optware/settings.json -O /mnt/data/torrents/.config/transmission-daemon/settings.json

Connecting to www.3iii.dk (193.202.110.52:80)

root@DD-WRT:~# /opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon

-sh: /opt/bin/transmission-daemon: not found

root@DD-WRT:~# cd /tmp

root@DD-WRT:/tmp# mount

rootfs on / type rootfs (rw)

/dev/root on / type squashfs (ro,relatime)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

ramfs on /tmp type ramfs (rw,relatime)

none on /dev type tmpfs (rw,relatime,size=512k)

devpts on /dev/pts type devpts (rw,relatime,mode=600)

devpts on /proc/bus/usb type usbfs (rw,relatime)

/dev/sda1 on /opt type ext2 (rw,relatime,errors=continue)

root@DD-WRT:/tmp#

check if this helps

DD-WRT v24-sp2

http://www.dd-wrt.com

==========================================================

BusyBox v1.19.4 (2012-03-19 14:27:37 CET) built-in shell (ash)

Enter 'help' for a list of built-in commands.

root@DD-WRT:~# dmesg

<5>Linux version 3.2.12-rc1-svn18774 (root@dd-wrt) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #396 Mon Mar 19 14:22:05 CET 2012

<7>prom: fw_arg0=00000001, fw_arg1=0372bfb0, fw_arg2=0372c3b0, fw_arg3=00000000

<7>argv[0]= (null) is invalid, skipping

<7>env[0]: memsize=64

<7>env[1]: initrd_start=0x00000000

<7>env[2]: initrd_size=0x0

<7>env[3]: flash_start=0xBF000000

<7>env[4]: flash_size=0x800000

<7>env[0]: memsize=64

<7>env[1]: initrd_start=0x00000000

<7>env[2]: initrd_size=0x0

<7>env[3]: flash_start=0xBF000000

<7>env[4]: flash_size=0x800000

<6>bootconsole [early0] enabled

<6>CPU revision is: 0001964c (MIPS 24KEc)

<6>Ralink RT3052 id:1 rev:3 running at 384.00 MHz

<6>Determined physical RAM map:

<6> memory: 04000000 @ 00000000 (usable)

<4>Zone PFN ranges:

<4> Normal 0x00000000 -> 0x00004000

<4>Movable zone start PFN for each node

<4>early_node_map[1] active PFN ranges

<4> 0: 0x00000000 -> 0x00004000

<7>On node 0 totalpages: 16384

<7>free_area_init_node: node 0, pgdat 802a3200, node_mem_map 81000000

<7> Normal zone: 128 pages used for memmap

<7> Normal zone: 0 pages reserved

<7> Normal zone: 16256 pages, LIFO batch:3

<7>pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

<7>pcpu-alloc: [0] 0

<4>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256

<5>Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 rootfstype=squashfs noinitrd

<6>PID hash table entries: 256 (order: -2, 1024 bytes)

<6>Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

<6>Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

<4>Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.

<4>Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes

<6>Writing ErrCtl register=0007abdf

<6>Readback ErrCtl register=0007abdf

<6>Memory: 61796k/65536k available (2296k kernel code, 3740k reserved, 405k data, 164k init, 0k highmem)

<6>NR_IRQS:48

<6>console [ttyS1] enabled, bootconsole disabled

<6>Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)

<6>pid_max: default: 32768 minimum: 301

<6>Mount-cache hash table entries: 512

<6>NET: Registered protocol family 16

<6>bio: create slab <bio-0> at 0

<5>SCSI subsystem initialized

<6>Switching to clocksource MIPS

<6>NET: Registered protocol family 2

<6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

<6>TCP established hash table entries: 2048 (order: 2, 16384 bytes)

<6>TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

<6>TCP: Hash tables configured (established 2048 bind 2048)

<6>TCP reno registered

<6>UDP hash table entries: 256 (order: 0, 4096 bytes)

<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

<6>NET: Registered protocol family 1

<6>squashfs: version 3.0 (2006/03/15) Phillip Lougher

<6>msgmni has been set to 120

<6>io scheduler noop registered

<6>io scheduler deadline registered (default)

<6>Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled

<6>serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A

<6>serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A

<4>Ralink gpio driver initialized

<6>system type: RT3052

<6>boot type: 0

<5>ralink flash device: 0x1000000 at 0xbf000000

<6>Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb

<7>Ralink SoC physically mapped flash: Found an alias at 0x800000 for the chip at 0x0

<6>Amd/Fujitsu Extended Query Table at 0x0040

<6> Amd/Fujitsu Extended Query version 1.1.

<5>number of CFI chips: 1

<0>

<0>found squashfs at 141000

<5>Creating 6 MTD partitions on "Ralink SoC physically mapped flash":

<5>0x000000000000-0x000000030000 : "uboot"

<5>0x000000030000-0x000000040000 : "uboot-config"

<5>0x000000040000-0x000000050000 : "factory-defaults"

<5>0x000000050000-0x0000007f0000 : "linux"

<5>0x000000141000-0x0000007f0000 : "rootfs"

<4>mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only

<5>0x0000007f0000-0x000000800000 : "nvram"

<6>tun: Universal TUN/TAP device driver, 1.6

<6>tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

<6>PPP generic driver version 2.4.2

<6>PPP BSD Compression module registered

<6>PPP Deflate Compression module registered

<6>NET: Registered protocol family 24

<6>Ralink APSoC Hardware Watchdog Timer

<6>u32 classifier

<6> Actions configured

<6>Netfilter messages via NETLINK v0.30.

<6>nf_conntrack version 0.5.0 (965 buckets, 3860 max)

<6>ctnetlink v0.93: registering with nfnetlink.

<6>IPv4 over IPv4 tunneling driver

<6>ip_tables: (C) 2000-2006 Netfilter Core Team

<6>IPP2P v0.8.2 loading

<6>ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully

<6>TCP bic registered

<6>TCP cubic registered

<6>TCP westwood registered

<6>TCP highspeed registered

<6>TCP hybla registered

<6>TCP htcp registered

<6>TCP vegas registered

<6>TCP scalable registered

<6>NET: Registered protocol family 17

<6>8021q: 802.1Q VLAN Support v1.8

<6>searching for nvram

<6>nvram size = 0

<4>MAC_ADRH -- : 0x00000000

<4>MAC_ADRL -- : 0x00000000

<4>Ralink APSoC Ethernet Driver Initilization. v2.0 256 rx/tx descriptors allocated, mtu = 1500!

<4>NAPI enable, Tx Ring = 256, Rx Ring = 256

<4>MAC_ADRH -- : 0x0000000c

<4>MAC_ADRL -- : 0x43414632

<4>rt3052 access driver initialization.

<6>VFS: Mounted root (squashfs filesystem) readonly on device 31:4.

<6>Freeing unused kernel memory: 164k freed

<4>rt2860v2_ap: module license 'unspecified' taints kernel.

<4>Disabling lock debugging due to kernel taint

<4>

<4>phy_tx_ring = 0x03660000, tx_ring = 0xa3660000

<4>

<4>phy_rx_ring0 = 0x03661000, rx_ring0 = 0xa3661000

<4>RT305x_ESW: Link Status Changed

<4>CDMA_CSG_CFG = 81000007

<4>GDMA1_FWD_CFG = 710000

<6>usbcore: registered new interface driver usbfs

<6>usbcore: registered new interface driver hub

<6>usbcore: registered new device driver usb

<6>dwc_otg: version 2.72a 24-JUN-2008

<6>DWC_otg: Core Release: 2.66a

<6>DWC_otg: Periodic Transfer Interrupt Enhancement - disabled

<6>DWC_otg: Multiprocessor Interrupt Enhancement - disabled

<6>DWC_otg: Using DMA mode

<6>DWC_otg: Device using Buffer DMA mode

<6>dwc_otg lm0: DWC OTG Controller

<6>dwc_otg lm0: new USB bus registered, assigned bus number 1

<6>dwc_otg lm0: irq 26, io mem 0x00000000

<6>DWC_otg: Init: Port Power? op_state=1

<6>DWC_otg: Init: Power Port (0)

<6>hub 1-0:1.0: USB hub found

<6>hub 1-0:1.0: 1 port detected

<6>usbcore: registered new interface driver libusual

<6>usb 1-1: new high-speed USB device number 2 using dwc_otg

<6>Initializing USB Mass Storage driver...

<6>usbcore: registered new interface driver usb-storage

<6>USB Mass Storage support registered.

<6>usbcore: registered new interface driver usblp

<6>scsi0 : usb-storage 1-1:1.0

<5>scsi 0:0:0:0: Direct-Access SanDisk Cruzer Blade 8.02 PQ: 0 ANSI: 0 CCS

<5>sd 0:0:0:0: Attached scsi generic sg0 type 0

<5>sd 0:0:0:0: [sda] 15695871 512-byte logical blocks: (8.03 GB/7.48 GiB)

<5>sd 0:0:0:0: [sda] Write Protect is off

<7>sd 0:0:0:0: [sda] Mode Sense: 45 00 00 08

<3>sd 0:0:0:0: [sda] No Caching mode page present

<3>sd 0:0:0:0: [sda] Assuming drive cache: write through

<3>sd 0:0:0:0: [sda] No Caching mode page present

<3>sd 0:0:0:0: [sda] Assuming drive cache: write through

<6> sda: sda1 sda2

<3>sd 0:0:0:0: [sda] No Caching mode page present

<3>sd 0:0:0:0: [sda] Assuming drive cache: write through

<5>sd 0:0:0:0: [sda] Attached SCSI removable disk

<3>EXT3-fs (sda1): error: unrecognized mount option "iocharset=utf8" or missing value

<4>EXT2-fs (sda1): warning: mounting ext3 filesystem as ext2

<4>EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended

<6>device vlan1 entered promiscuous mode

<6>device eth2 entered promiscuous mode

<6>br0: port 1(vlan1) entering forwarding state

<6>br0: port 1(vlan1) entering forwarding state

<4>RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=ra0!

<4>0x1300 = 00064380

<4>0x1300 = 00064380

<6>device ra0 entered promiscuous mode

<6>br0: port 2(ra0) entering forwarding state

<6>br0: port 2(ra0) entering forwarding state

<6>br0: port 1(vlan1) entering forwarding state

<6>device vlan2 entered promiscuous mode

<6>device vlan2 left promiscuous mode

<6>br0: port 2(ra0) entering forwarding state

root@DD-WRT:~# lsmod

Module Size Used by

nf_nat_pptp 1312 0

nf_conntrack_pptp 3120 1 nf_nat_pptp

nf_nat_proto_gre 800 1 nf_nat_pptp

nf_conntrack_proto_gre 2272 1 nf_conntrack_pptp

rt2860v2_ap 470608 1

ext3 98016 0

jbd 29776 1 ext3

ext2 40352 1

mbcache 3488 1 ext3

usblp 8128 0

usb_storage 26512 1

scsi_wait_scan 320 0

usb_libusual 8032 1 usb_storage

dwc_otg 58640 0

usbcore 96256 5 usblp,usb_storage,usb_libusual,dwc_otg

usb_common 480 1 usbcore

root@DD-WRT:~# cd /dev/discs/disc0;ls -lrt

-sh: cd: can't cd to /dev/discs/disc0

root@DD-WRT:~# mount

rootfs on / type rootfs (rw)

/dev/root on / type squashfs (ro,relatime)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

ramfs on /tmp type ramfs (rw,relatime)

none on /dev type tmpfs (rw,relatime,size=512k)

devpts on /dev/pts type devpts (rw,relatime,mode=600)

devpts on /proc/bus/usb type usbfs (rw,relatime)

/dev/sda1 on /opt type ext2 (rw,relatime,errors=continue)

root@DD-WRT:~#
 

dinjo

Hell Yeah[Born Critic]
Skilled
Sep 14, 2009
6,341
205
203
Mumbai
Firstly its very difficult to read the stuff unless you put them in code tags , next time someone puts this I'll simply ignore the output.

Did you formatted the drive correctly ? Also post output of fdisk -l the dd wrt version might have disabled all other charset , but bigger problem seems to be this

[font=helvetica, arial, sans-serif]cd /dev/discs/disc0;ls -lrt[/font]

[font=helvetica, arial, sans-serif]-sh: cd: can't cd to /dev/discs/disc0[/font]
 

ramkrsn

Disciple
Mar 27, 2012
26
0
1
Firstly its very difficult to read the stuff unless you put them in code tags , next time someone puts this I'll simply ignore the output.

Did you formatted the drive correctly ? Also post output of fdisk -l the dd wrt version might have disabled all other charset , but bigger problem seems to be this

[font=helvetica, arial, sans-serif]cd /dev/discs/disc0;ls -lrt[/font]

[font=helvetica, arial, sans-serif]-sh: cd: can't cd to /dev/discs/disc0[/font]

thank you for the prompt reply bro...

okay here is my mistake..

firmware i was using was r18777 then i decided to go as per the guide to the letter "Z" so now the firmware is r16994 from here

http://www.dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FBrainSlayer-V24-preSP2%2F2011%2F05-08-11-r16994%2F

Admin - Commands - Startup is

EXT3="YES";EXT3P="part1";EXT32="YES";EXT3P2="part2";mkdir /tmp/etc/config

mkdir /tmp/etc/config

echo "wget http://home.karneval.cz/10102207/fs.gz -P /tmp/root" >> /tmp/etc/config/fs.wanup

echo "tar -xvzf /tmp/root/fs.gz -C /tmp/root" >> /tmp/etc/config/fs.wanup

echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup

echo "mount -o rw -t ext3 /dev/discs/disc0/part1 /opt" >> /tmp/etc/config/fs.wanup

echo "mount -o rw -t ext3 /dev/discs/disc0/part2 /mnt" >> /tmp/etc/config/fs.wanup

echo "rm /tmp/root/*.ko /tmp/root/fs.gz /tmp/root/ext3" >> /tmp/etc/config/fs.wanup

chmod +x /tmp/etc/config/fs.wanup

echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd

sleep 60

echo 1 > /sys/class/scsi_disk/0:0:0:0/allow_restart

wget http://www.3iii.dk/linux/optware/settings.json -O /mnt/data/torrents/.config/transmission-daemon/settings.json

/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon

Services - USB says



Uploaded with ImageShack.us

Putty says

DD-WRT v24-sp2 std (c) 2011 NewMedia-NET GmbH

Release: 05/08/11 (SVN revision: 16994)

DD-WRT login: root

Password:

==========================================================

____ ___ __ ______ _____ ____ _ _

| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |

|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_

||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|

|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2

http://www.dd-wrt.com

==========================================================

BusyBox v1.13.4 (2011-05-08 12:47:06 CEST) built-in shell (ash)

Enter 'help' for a list of built-in commands.

root@DD-WRT:~# cd /tmp

root@DD-WRT:/tmp# mount

rootfs on / type rootfs (rw)

/dev/root on / type squashfs (ro)

none on /dev type devfs (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

ramfs on /tmp type ramfs (rw)

devpts on /dev/pts type devpts (rw)

devpts on /proc/bus/usb type usbfs (rw)

/dev/discs/disc0/part1 on /opt type ext3 (rw,data=ordered)

/dev/discs/disc0/part2 on /mnt type ext3 (rw,data=ordered)

root@DD-WRT:/tmp#

then the guide worked fine.. million thanks for the support am downloading torrents or rather initiate the download and turn the system and check how it goes.....

and oh yes... almost forgot... to xfr files after download i am using

Ex2 Volumanager -> this mounts the drivers

Ex2 explore -> copy files to and from the USB after the download is complete.

once again thanks a ton...

tell me how to give the reps would give all to you my deserving friend.... now the next post is going to be on the ASUS gold VIP membership... commendation to hire you at a senior tech support level...

once again thanks a ton...
 

sanDJ

Disciple
Apr 3, 2012
11
0
0
46
Hyderabad
dear @din

i have successfully opt/mounted usb pen drive

trying to install optware after running commands

"wget http://home.karneval.cz/10102207/optware-install.sh -O - | tr -d '\r' > /tmp/optware-install.sh

sh /tmp/optware-install.sh; ipkg update; ipkg upgrade

wget http://home.karneval.cz/10102207/sort -P /opt/bin; chmod +x /opt/bin/sort

i get "sh : ipkg not found" in PUTTY

I USE DD WRT (build 17027) for asus rtn16u B1

ROUTER IP IS 192.168.2.1

Im i doing anything wrong ,i read your 1st post many times and hav followed line by line but still not able to do it ,help me im new to linux.
 

dinjo

Hell Yeah[Born Critic]
Skilled
Sep 14, 2009
6,341
205
203
Mumbai
Firstly your drive is not mounted properly can you post the output of commands I mentioned on first page.

#ramkrsn

You can use Ext2Explorer if you want to plug out the drive and connect to your pc directly other wise Samba and connect it via the Router IP or FTP(use any ftp explorer) can be used

I do a lot better job than those Asus tech support assholes , unix/linux is my hobby and my worklife.
 

sanDJ

Disciple
Apr 3, 2012
11
0
0
46
Hyderabad
dear dinjo

i hav created 2 different EXT3 Partition on 4GB pendrive with Gparted,

Partition 1 – Mounted on /opt – 512Mb – Formatted with EXT3

Partition 2 – Mounted on /mnt – 3.2GB– Formatted with EXT3

followed instructions as per ur 1st page

got putty telnet to192.168.1.1

login : root

pass : admin

with mount command got output as :

root@DD-WRT:/tmp# mount

rootfs on /
type rootfs (rw)

/dev/root on / type squashfs (ro)

none on
/dev type devfs (rw)

proc on
/proc type proc (rw)

sysfs on
/sys type sysfs (rw)

ramfs on
/tmp type ramfs (rw)

devpts on
/dev/pts type devpts (rw)

devpts on
/proc/bus/usb type usbfs (rw)

/dev/discs/disc0/part1 on /opt type ext3 (rw,data=ordered)

/dev/discs/disc0/part2 on /mnt type ext3 (rw,data=ordered)

root@DD
-WRT:/tmp#

then when i install try to install optware using following commands :

wget [url]http://home.karneval.cz/10102207/optware-install.sh[/url] -O - | tr -d '\r' > /tmp/optware-install.sh

sh
/tmp/optware-install.sh; ipkg update; ipkg upgrade

wget
[url]http://home.karneval.cz/10102207/sort[/url] -P /opt/bin; chmod +x /opt/bin/sort


OUTPUT FOR THOSE COMMANDS is :

sh : ipkg not found

i have tried many times and failed ,got stuck at this point .

plz help me .
 

ramkrsn

Disciple
Mar 27, 2012
26
0
1
dear @din

i have successfully opt/mounted usb pen drive

trying to install optware after running commands

"wget http://home.karneval...ware-install.sh -O - | tr -d '\r' > /tmp/optware-install.sh

sh /tmp/optware-install.sh; ipkg update; ipkg upgrade

wget http://home.karneval.cz/10102207/sort -P /opt/bin; chmod +x /opt/bin/sort

i get "sh : ipkg not found" in PUTTY

I USE DD WRT (build 17027) for asus rtn16u B1

ROUTER IP IS 192.168.2.1

Im i doing anything wrong ,i read your 1st post many times and hav followed line by line but still not able to do it ,help me im new to linux.

buddy no matter how many times you try the complete stuff to the letter "Z" it does not work... i finally got it working with firmware r16994 it is very stable.... all the steps worked for me in the first go with this firmware....

download this from

http://www.dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FBrainSlayer-V24-preSP2%2F2011%2F05-08-11-r16994%2F
 

dinjo

Hell Yeah[Born Critic]
Skilled
Sep 14, 2009
6,341
205
203
Mumbai
Since I don't have the device with me now I can't say why isn't working I could have get it working if I would have got the device.

#Revo_007

Can you assist
 

sanDJ

Disciple
Apr 3, 2012
11
0
0
46
Hyderabad
Dear dinjo ,

You are excellent man, you really made ASUS RTN 13U B1 a 24X7 download hub.finally i made it to work and my download speed is suprisingly high !!! a tons of thanks to you .the ASUS router programmers should learn from you or else their native Firmware should be thrown into Trash!!!

my advice to all others who are trying this .........READ THE 1ST PAGE TWICE /THRICE ....and you will never fail !!!

THANKS to all others for their valuable support !!
 

sanDJ

Disciple
Apr 3, 2012
11
0
0
46
Hyderabad
Dear dinjo

every thing is working fine but my ASUS Router CPU usage reaches peak 100% while downloading torrents ....is that any thing to concern about ?
 

distro

Adept
Mar 16, 2010
524
58
66
It will reach 100% , since a lot of p2p connections take place and router has to work for it.

Try killing unrequired packages.
 

ramkrsn

Disciple
Mar 27, 2012
26
0
1
@dinjo.... sorry for the late reply bro... everything is okay the only disconnect was the firmware version, as soon as i installed hte older version it is working as per the guide... now tell me how to give all the reps to you.... or is there any way i can commend you...
clapping.gif
 

dinjo

Hell Yeah[Born Critic]
Skilled
Sep 14, 2009
6,341
205
203
Mumbai
I'm not a Rep whore
<


Now let the extraction happen at device itself
clapping.gif


Step 1. Stop transmission

Step 2. Add the below 2 lines in settings.json of transmission , /mnt/data/torrents/.config/transmission-daemon/settings.json

"script-torrent-done-enabled": true,

"script-torrent-done-filename": "root/extract.sh"

Step 3. Create a file extract.sh and put below code in it and save

Provide Execute perms

chmod +x extract.sh

Code:
#! /bin/bash

LOG_FILE=/var/log/unrar.log

TR_USERNAME="transmission"

TR_PASSWORD="transmission"

NOW=$(date +%Y-%m-%d\ %H:%M:%S)

SRC_DIR="${TR_TORRENT_DIR}/${TR_TORRENT_NAME}"

DEST_DIR="${TR_TORRENT_DIR}/${TR_TORRENT_NAME}/"

TR_TORRENT_PARAMETER="EXTRACT SLEEP1h"

if [ -e "$SRC_DIR/exit" ]; then

TR_TORRENT_PARAMETER="EXIT"

fi

# Actual processing starts here.

if [[ "$TR_TORRENT_PARAMETER" =~ "EXIT" ]]; then

echo $NOW "Exiting $TR_TORRENT_NAME" >> $LOG_FILE

exit 0

fi

if [[ "$TR_TORRENT_PARAMETER" =~ "EXTRACT" ]]; then

cd $TR_TORRENT_DIR

if [ -d "$SRC_DIR" ]; then

IFS=$'\n'

unset RAR_FILES i

for RAR_FILE in $( find "$SRC_DIR" -iname "*.rar" ); do

if [[ $RAR_FILE =~ .*part.*.rar ]]; then

  if [[ $RAR_FILE =~ .*part0*1.rar ]]; then

    RAR_FILES[i++]=$RAR_FILE

  fi

else

  RAR_FILES[i++]=$RAR_FILE

fi

done

unset IFS

if [ ${#RAR_FILES} -gt 0 ]; then

for RAR_FILE in "${RAR_FILES[@]}"; do

  unrar x -inul "$RAR_FILE" "$DEST_DIR"

done

echo $NOW "Unrarred $TR_TORRENT_NAME" >> $LOG_FILE

fi

fi

fi

Step 4. Start Transmission

If you dont have bash shell , replace with /bin/ksh

#[member='Saiyan'] , how do i change the editor from html to text based I wanted to add the above post to first post but seems like its opening in html mode resulting in all html tags.
 

ramkrsn

Disciple
Mar 27, 2012
26
0
1
@dinjo you got me wrong buddy... if you are good at something dont do it for free....

is ther ea way to make the new firmware mount the drives the way these old firmwares do?
 

dinjo

Hell Yeah[Born Critic]
Skilled
Sep 14, 2009
6,341
205
203
Mumbai
I dont have the device with me I have sold my router so i cannot do any R&D with it.If i could have the device i would have definitely done it.

#[member='Renegade'] Can you assist on editor part its very difficult to type text with tags enabled

#[member='ramkrsn']

I earn more than enough at my job to get into this to start earning money out of it.