Hi,
wenn Du Dir die rc.unslung mal genau ansiehst wirst Du feststellen, dass nur Dateien gestartet werden , die mit einem großen S anfangen. daher wird mein busybox_httpd im Moment nicht gestartet.
Code:
[admin@blechbuechse root]$ ls -la /opt/etc/init.d/
total 32
drwxr-xr-x 2 admin root 4096 May 8 08:44 .
drwxr-xr-x 8 admin root 4096 May 8 08:41 ..
-rwxr-xr-x 1 admin root 908 May 5 15:50 S05syslogd
-rwxr-xr-x 1 admin root 224 Apr 10 11:55 S10cron
-rwxr-xr-x 1 admin root 1446 Apr 26 11:01 S10xinetd
-rwxr-xr-x 1 admin root 809 Apr 3 08:47 S80lighttpd
-rwxr-xr-x 1 admin root 3127 May 3 22:28 _S80busybox_httpd
-rwxr-xr-x 1 admin root 822 Apr 10 10:46 rc.unslung
Hier der Inhalt:
Code:
[admin@blechbuechse root]$ cat /opt/etc/init.d/_S80busybox_httpd
#!/bin/sh
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
# Uncomment path to busybox httpd to enable startup
BUSYBOX_HTTPD=/usr/sbin/busybox_httpd
HTTPD_CONFIG=/opt/etc/httpd.conf
LISTENING_PORT=8008
INDEX=/opt/share/www/index.html
check_config(){
if [ ! -r ${HTTPD_CONFIG} ]; then
echo "Creating default ${HTTPD_CONFIG}"
cat > ${HTTPD_CONFIG} << __EOF__
# httpd.conf has the following format:
#
# A:172.20. # Allow address from 172.20.0.0/16
# A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127
# A:10.0.0.0/255.255.255.128 # Allow any address that previous set
# A:127.0.0.1 # Allow local loopback connections
# D:* # Deny from other IP connections
# /cgi-bin:foo:bar # Require user foo, pwd bar on urls starting with /cgi-bin/
# /adm:admin:setup # Require user admin, pwd setup on urls starting with /adm/
# /adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/
# .au:audio/basic # additional mime type for audio.au files
#
# A/D may be as a/d or allow/deny - first char case insensitive
# Deny IP rules take precedence over allow rules.
#
#
# The Deny/Allow IP logic:
#
# - Default is to allow all. No addresses are denied unless
# denied with a D: rule.
# - Order of Deny/Allow rules is significant
# - Deny rules take precedence over allow rules.
# - If a deny all rule (D:*) is used it acts as a catch-all for unmatched
# addresses.
# - Specification of Allow all (A:*) is a no-op
#
# Example:
# 1. Allow only specified addresses
# A:172.20 # Allow any address that begins with 172.20.
# A:10.10. # Allow any address that begins with 10.10.
# A:127.0.0.1 # Allow local loopback connections
# D:* # Deny from other IP connections
#
# 2. Only deny specified addresses
# 2. Only deny specified addresses
# D:1.2.3. # deny from 1.2.3.0 - 1.2.3.255
# D:2.3.4. # deny from 2.3.4.0 - 2.3.4.255
# A:* # (optional line added for clarity)
#
# If a sub directory contains a config file it is parsed and merged with
# any existing settings as if it was appended to the original configuration.
#
# subdir paths are relative to the containing subdir and thus cannot
# affect the parent rules.
#
# Note that since the sub dir is parsed in the forked thread servicing the
# subdir http request, any merge is discarded when the process exits. As a
# result, the subdir settings only have a lifetime of a single request.
#
A:*
#/cgi-bin:${USER}:password
.au:audio/basic
.asp:text/html
__EOF__
fi
}
start() {
if [ ! -x "${BUSYBOX_HTTPD}" ]; then
echo "busybox httpd ${BUSYBOX_HTTPD} not started."
exit 2
fi
check_config
echo -n "Starting busybox httpd at port ${LISTENING_PORT} ... "
${BUSYBOX_HTTPD} -c ${HTTPD_CONFIG} -p ${LISTENING_PORT} -h /opt/share/www
echo "done"
}
stop() {
echo -n "Shutting down busybox httpd... "
killall busybox_httpd
echo "done"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
Wenn Du keine Lust auf abtippen hast kannst Du auch transmission neu installieren. das erstellt die Datei.
Deinem Post entnehme ich, dass Du 4 (in Worten; Vier) Webserver am laufen hast!
Respekt. Wird das nicht super langsam?
Zur Konfiguration des cgi muss ich nochmal suchen. Da gabs nen Post im Forum (sogar von mir).
Wenn die Playlist mit PHP arbeitet müsstest Du PHP installieren (ipkg) und in der lighttpd conf aktivieren.
wengi