DD-WRT, how to make a link to a script

5 posts / 0 new
Last post
schwa226
schwa226's picture
DD-WRT, how to make a link to a script

Hi,

 

I just getting problems to make a link to my script:

 

ln /mnt/myscript /bin/myscript

But it doesn't make a link. So I cannot only type "myscript start" as example.

 

Also I tried these ones:

ln /mnt/myscript /usr/bin/myscript

ln /mnt/myscript /usr/sbin/myscript

 

With debian linux it is no problem...

Kong
Kong's picture
What firmware?

What firmware?

With dd-wrt you would just place the script inside any of the following dirs:

/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin

schwa226
schwa226's picture
Firmware: DD-WRT v24-sp2 (04

Firmware: DD-WRT v24-sp2 (04/23/10) mega - build 14311

I can't copy the script in any folder like above.
Everytime: read only...

Folder jffs, mmc and opt are empty!

Kong
Kong's picture
/jffs /mmc /opt are used when

/jffs /mmc /opt are used when you attach a usb device and mount it.
If you cannot use a usb device then you need to customize the firmware, since /usr/sbin etc. is not writable.

schwa226
schwa226's picture
Thx for this info!

Thx for this info!

I have already a 2GB USB stick connected and automounted on /mnt.

Can I mount it also to /jffs at the same time?

/mnt is also used for FTP storage.