View Full Version : Additional packages and Asus fw 1.8.1.9
Is it possible to use the additional packages provided on the phpwiki pages whith official firmware?
I mean... using the init script option present at "USB Application - FTP Server" menu?
Yes, some of the additional packages can be used on official Asus firmwares. Other features can't be used because it requires kernel options or other customized packages in the firmware which are not present in the official ones.
Copy for example the complete busybox to an attached USB stick/drive and you can start using the http server. Use the BootCmd's for setting the http daemon up.
Copy for example the complete busybox to an attached USB stick/drive and you can start using the http server. Use the BootCmd's for setting the http daemon up.
Thanks for your repply... but it's still a little bit confuse for me ;-)
> Must the usb stick be formatted in ext2 fs? If yes, is it possible from other os than linux... like win xp?
> Do busybox and script files have to be stored in dedicated folders? If yes, which ones?
> Must the usb stick be formatted in ext2 fs? If yes, is it possible from other os than linux... like win xp?
No, an USB stick formatted in FAT32/16 will suffice. You can also use ext2 which you can create using PartitionMagic in Windows or, of course, using another linux box.
> Do busybox and script files have to be stored in dedicated folders? If yes, which ones?No, you can put busyboxy in any folder on the stick. The script can be in the same or another folder.
Some packages howerver, are compiled with statically linkt libraries with fixed paths. In those cases those paths are documented.
Some packages require special kernel options enabled which are enabled in the custom firmwares but not in the official ones. If a package needs such an option it will not work and, generally, give an indicating error.
Good luck trying.
No, an USB stick formatted in FAT32/16 will suffice. You can also use ext2 which you can create using PartitionMagic in Windows or, of course, using another linux box.
No, you can put busyboxy in any folder on the stick. The script can be in the same or another folder.
Some packages howerver, are compiled with statically linkt libraries with fixed paths. In those cases those paths are documented.
Some packages require special kernel options enabled which are enabled in the custom firmwares but not in the official ones. If a package needs such an option it will not work and, generally, give an indicating error.
Good luck trying.
Last questions before my tests:
> Do scripts have to be in the "linux style" or can I create them with note pad under windows? ;)
> How to localise the script under the "USB Application - FTP Server" menu: like /folder/script or like "drive letter":\folder\script?
Well, I feel you should find out yourself. You'll see soon enough.
one hint: vi
:D
Well, I feel you should find out yourself. You'll see soon enough.
one hint: vi
:D
Using vi suppose that I can telnet to my router (or use linux).
And telnet to the router is a little bit difficult on official fw without making a script, no?! :D
So... do you think thant vi emulator exist for windows?! :rolleyes:
I'll go on test!
Thanks for your starting help.
Just found WinVI...
I go back to work!!! :D
Using vi suppose that I can telnet to my router (or use linux).
And telnet to the router is a little bit difficult on official fw without making a script, no?! :D
So... do you think thant vi emulator exist for windows?! :rolleyes:
I'll go on test!
Thanks for your starting help.
:eek: Ok, you got me. Telnetting is difficult to a router with no telnet server on it :p
Well, bringing up a telnel daemon should be the first thing to do. Perhaps it can be done through the hidden admin page... Otherwise, get the GPL source and compile a telnet daemon in your own firmware. One thing is certain: telnet daemon makes your life a lot easier!
Search the forum on howto setup a telnet daemon in official firmware. Its been done before.
Search the forum on howto setup a telnet daemon in official firmware. Its been done before.
OK for setting up telnetd from the hidden admin page...
But KO from a script!
System log report this:
USB storage: start user specified script
Here is my script (made with WinVI):
cp /tmp/harddisk/busybox /tmp/busybox
chmod a+x /tmp/busybox
ln -s /tmp/busybox /tmp/sh
cp /tmp/harddisk/telnetd /tmp/telnetd
chmod a+x /tmp/telnetd
/tmp/telnetd -d -l /tmp/sh &
Do you know what's wrong?
Antiloop
04-10-2004, 00:23
OK for setting up telnetd from the hidden admin page...
But KO from a script!
System log report this:
USB storage: start user specified script
Here is my script (made with WinVI):
cp /tmp/harddisk/busybox /tmp/busybox
chmod a+x /tmp/busybox
ln -s /tmp/busybox /tmp/sh
cp /tmp/harddisk/telnetd /tmp/telnetd
chmod a+x /tmp/telnetd
/tmp/telnetd -d -l /tmp/sh &
Do you know what's wrong?
try this not sure if it works now..
[root@SNOL init]$ cat /tmp/harddisk/telnetd
#!/bin/sh
#
# usage: router WAN LAN
#
cp /tmp/harddisk/busybox /tmp/busybox
chmod +x /tmp/busybox
ln -s /tmp/busybox /tmp/sh
ln -s /tmp/busybox /tmp/telnetd
/tmp/telnetd -d -l /tmp/sh &
try this not sure if it works now..
[root@SNOL init]$ cat /tmp/harddisk/telnetd
#!/bin/sh
#
# usage: router WAN LAN
#
cp /tmp/harddisk/busybox /tmp/busybox
chmod +x /tmp/busybox
ln -s /tmp/busybox /tmp/sh
ln -s /tmp/busybox /tmp/telnetd
/tmp/telnetd -d -l /tmp/sh &
No... the router doesn't execute any command.
I've tried a script with a single line for easy test purpose:
cp /tmp/harddisk/busybox /tmp/busybox
But even this can't be executed in single.
Is there specific syntax to start and finish script files?
Antiloop
04-10-2004, 08:44
No... the router doesn't execute any command.
I've tried a script with a single line for easy test purpose:
cp /tmp/harddisk/busybox /tmp/busybox
But even this can't be executed in single.
Is there specific syntax to start and finish script files?
please try a
chmod +x /tmp/harddisk/scriptyouwanttoexecute
before executing
type this from the system command page
./tmp/harddisk/scriptyouwanttoexecute
please try a
chmod +x /tmp/harddisk/scriptyouwanttoexecute
before executing
type this from the system command page
./tmp/harddisk/scriptyouwanttoexecute
It doesn't help me... script isn't executed.
I presume I make mistakes while encoding my script... or saving it.
Is there a log file somewhere that warn for errors?
Antiloop
04-10-2004, 15:48
do a
ls /
this should give some output.. otherwise i give up... :confused:
do a
ls /
this should give some output.. otherwise i give up... :confused:
:D ...
So, I've made a script called "test" including the only "ls /" command.
And I've write it on "/tmp/harddisk/".
When I type "./tmp/harddisk/test"
... in the telnet window, it works: files are listed!
... at the system command line (hidden admin page), it's KO: no listing!
Bug or not bug? :eek: