gerardwr
21-04-2008, 15:04
Hi,
I could you use your help, here.
I've been using my WL-HDD for years now with FW 1.2.3.0, but now I would like to add a webserver to my WL-HDD. Tweaking the builtin webserver does not seem possible so I installed the OLEG FW, so I could use busybox_httpd.
If I start busybox_httpd -p 8080 -h /tmp/harddisk/www the webserver (files are on the disk in the WL-HDD in the WWW directory) is running and I can use it with Internet Explorer. So far, so good.
To make sure that busybox_httpd is also restarted after a reboot I followed the instructions on this board and I:
- created a post-boot script in the /usr/local/sbin directory
- made it executable
- tested it (it works)
- saved it to flash using FLASHFS
Unfortunately after a reboot it seems like the post-boot is not started. The ECHO messages in the script that are supposed to enter some text in a file do not appear, and PS reveals that busybox_http is NOT running.
I've read MANY messages on this board and the internet, but to no avail. It's probably something "stupid" on my part.
Perhaps one of you would be so kind to peek at the information copied from the telnet sessiona glance, and spot the problem.
[admin@wl-hdd sbin]$ pwd
/usr/local/sbin
[admin@wl-hdd sbin]$ cat post-boot
#!/bin/sh
echo post-boot >>/tmp/harddisk/system/postboot.txt
date >>/tmp/harddisk/system/postboot.txt
busybox_httpd -p 8080 -h /www >>/tmp/harddisk/system/postboot.txt
[admin@wl-hdd sbin]$ flashfs save
tar: Removing leading '/' from member names
tmp/local/
tmp/local/sbin/
tmp/local/sbin/post-boot
tmp/local/sbin/post-firewall
tmp/local/root/
-rw-r--r-- 1 admin root 293 Jan 1 00:04 /tmp/flash.tar.gz
Check saved image and type "/sbin/flashfs commit" to commit changes
[admin@wl-hdd sbin]$ flashfs commit
.
Committed.
[admin@wl-hdd sbin]$ flashfs enable
[admin@wl-hdd sbin]$ post-boot
busybox_httpd: bind: Address already in use
[admin@wl-hdd sbin]$ reboot
[admin@wl-hdd sbin]$
I could you use your help, here.
I've been using my WL-HDD for years now with FW 1.2.3.0, but now I would like to add a webserver to my WL-HDD. Tweaking the builtin webserver does not seem possible so I installed the OLEG FW, so I could use busybox_httpd.
If I start busybox_httpd -p 8080 -h /tmp/harddisk/www the webserver (files are on the disk in the WL-HDD in the WWW directory) is running and I can use it with Internet Explorer. So far, so good.
To make sure that busybox_httpd is also restarted after a reboot I followed the instructions on this board and I:
- created a post-boot script in the /usr/local/sbin directory
- made it executable
- tested it (it works)
- saved it to flash using FLASHFS
Unfortunately after a reboot it seems like the post-boot is not started. The ECHO messages in the script that are supposed to enter some text in a file do not appear, and PS reveals that busybox_http is NOT running.
I've read MANY messages on this board and the internet, but to no avail. It's probably something "stupid" on my part.
Perhaps one of you would be so kind to peek at the information copied from the telnet sessiona glance, and spot the problem.
[admin@wl-hdd sbin]$ pwd
/usr/local/sbin
[admin@wl-hdd sbin]$ cat post-boot
#!/bin/sh
echo post-boot >>/tmp/harddisk/system/postboot.txt
date >>/tmp/harddisk/system/postboot.txt
busybox_httpd -p 8080 -h /www >>/tmp/harddisk/system/postboot.txt
[admin@wl-hdd sbin]$ flashfs save
tar: Removing leading '/' from member names
tmp/local/
tmp/local/sbin/
tmp/local/sbin/post-boot
tmp/local/sbin/post-firewall
tmp/local/root/
-rw-r--r-- 1 admin root 293 Jan 1 00:04 /tmp/flash.tar.gz
Check saved image and type "/sbin/flashfs commit" to commit changes
[admin@wl-hdd sbin]$ flashfs commit
.
Committed.
[admin@wl-hdd sbin]$ flashfs enable
[admin@wl-hdd sbin]$ post-boot
busybox_httpd: bind: Address already in use
[admin@wl-hdd sbin]$ reboot
[admin@wl-hdd sbin]$