Hehe na ja denke soviel ist da nicht durcheinander.
Aber sehen wir mal habe den dhcp über Konsole gestartet.
/opt/etc/init.d/S10dhcp start
Code
#!/bin/sh
if [ -n "`pidof dhcpd`" ] ; then
/opt/bin/killall dhcpd 2>/dev/null
fi
sleep 2
rm -f /opt/var/run/dhcpd.pid
/opt/sbin/dhcpd
Habe ich noch diese vom optware übernommen
Code
#!/bin/sh
start()
{
echo "Starting "
/opt/etc/init.d/S56dhcp
}
stop()
{
echo "Shutting down "
killall -9 dhcpd}
# you do not need to edit this lines
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
# Restarting the Daemon
$0 stop
$0 start
;;
*)
## If no parameters are given, print which are avaiable.
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
Alles anzeigen
Rechte sind alle auf 755 gesetzt
Weiß jetzt nicht welcher dhcpd besser ist.
unter Konsole ist dieser gestartet.