Hallo und Danke für die wiedermal schnelle Antwort......
Hab mal geforscht und folgendes festgestellt wenn ich rc.unslung eingebe:
PHP Code:
[admin@Server init.d]$ rc.unslung
-sh: rc.unslung: not found
Oder wie meintest Du soll ich das aufrufen?
Auf jeden habe ich nen kleinen Fehler in der rc.unslung gefunden.... nun komme ich auf
http://ASUSIPADRESSE:8008/cgi-bin/transmission.cgi
Leider nicht auf Samba mittels:
http://IP.ADRESSE.DES.ASUS:901
Vielleicht kannst Du ja doch noch mal schnell über meine Sachen schauen, hab alles mal angehangen:
Wäre schön, denn wenn Samba läuft könnte ich das Projekt 2 Wochen ruhen lassen ...Keine Bange
Und schon mal schönen Urlaub, wenn Du dich häufiger mit so Leuten wie mir rumschlagen musst,hasst Du ihn dir sicher verdient.
PHP Code:
[admin@Server init.d]$ cd /opt/etc/init.d/
[admin@Server init.d]$ ls
S05syslogd S10cron S10xinetd S80busybox_httpd S80samba rc.unslung
[admin@Server init.d]$
PHP Code:
[admin@Server init.d]$ vi /usr/local/sbin/post-boot
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
mount /dev/discs/disc0/part3 /tmp/harddisk
# Activate swap
swapon /dev/discs/disc0/part1
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
~
~
~
~
- /usr/local/sbin/post-boot 1/25 4%
PHP Code:
[admin@Server init.d]$ vi /opt/etc/init.d/rc.unslung
for i in /opt/etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
~
~
~
~
~
~
~
~
- /opt/etc/init.d/rc.unslung 1/21 4%
PHP Code:
[admin@Server init.d]$ vi /opt/etc/crontab
S
PATHs Empty ---------- ---------- #
*/30 * * * * admin nice /opt/sbin/transmission_watchdog
0 0 * * * admin /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
- /opt/etc/crontab 1/7 14%
PHP Code:
[admin@Server init.d]$ vi /opt/etc/logrotate.conf
compress
/opt/var/log/messages {
size 1024k
weekly
rotate 9
postrotate
killall -HUP syslogd
endscript
}
include /opt/etc/logrotate.d
~
~
~
~
~
~
~
- /opt/etc/logrotate.conf 1/22 4%
PHP Code:
[admin@Server init.d]$ vi /opt/etc/init.d/S05syslogd
#!/bin/sh
#
# Startup script for syslogd
#
# Stop myself if running
if [ -n "`pidof syslogd`" ]; then
killall syslogd 2>/dev/null
fi
# copy content of original syslogd to new syslog.
cat /tmp/syslog.log >> /opt/var/log/messages
# remove old syslog.log
rm /tmp/syslog.log
/sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
~
~
~
~
~
~
~
~
~
~
~
~
- /opt/etc/init.d/S05syslogd 1/17 5%