DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-02-17 11:29:45

skydreamer
Member
From: At the Atlantic Coast
Registered: 2007-01-06
Posts: 232

inted in funplug 1.04 fix

There is a small scripting error in inetd.sh, which prevents the daemon from starting. The script looks for inetd in bin directory but it resides in the sbin folder. Perhaps it is a well know issue but I could not find it in this forum.

Attached is the corrected script:

--------------------
#!/bin/sh

inetd_start() {
    if [ -x "${SBINDIR}/inetd" ]; then
        echo "Starting inetd... "
        ${SBINDIR}/inetd ${ETCDIR}/inetd.conf
    else
        echo "ERROR: inetd not found or not executable"
    fi
}

inetd_stop() {
    killall inetd
}

inetd_status() {
    if [ -n "$(pidof inetd)" ]; then
        echo "running"
    else
        echo "stopped"
    fi
}

case "$1" in
    stop)
        inetd_stop
        ;;
    restart)
        inetd_stop
        sleep 1
        inetd_start
        ;;
    status)
        inetd_status
        ;;
    start|'')
        inetd_start
        ;;
    *)
        echo "Usage: $0 start|stop|restart|status"
        ;;
esac
-----------------------------

Offline

 

#2 2008-02-17 16:46:43

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: inted in funplug 1.04 fix

thanks for reporting

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB