Mettre a jours dyndns et no-ip par la dreambox

  • Initiateur de la discussion Initiateur de la discussion manu
  • Date de début Date de début

manu

New member
bonjour

Le fichier est inadyn_script.sh

sur gemini se trouve dans var scrypt

sur nemesis se trouve dans var ect

sur nabilo se trouve dans var bin

pour sa configuration sous dyndns

#!/bin/sh

DAEMON=/bin/inadyn

NAME=inadynd

DESC="InaDyn dynamic DNS Client"

INADYN_ON=1

INADYN_USERNAME=votre identifiant pour rentrer sur dyndns INADYN_PASSWORD=votre password pour rentrer sur dyndns

INADYN_ALIAS=votre host exemple : (tysonsat.dyndns.org)

U**ATE_PERIOD=60000

LOG_FILE_ON=1

LOG_NAME=/var/log/inadyn.log

DYN_SYSTEM_ON=1

DYN_SYSTEM=dyndns@dyndns.org

test -f $DAEMON || exit 0

set -e

case "$1" in

start)

if [ $INADYN_ON -ne 0 ]; then

ARGS="-u $INADYN_USERNAME -p $INADYN_PASSWORD -a $INADYN_ALIAS --u**ate_period $U**ATE_PERIOD"

if [ $LOG_FILE_ON = 1 ]; then

ARGS="$ARGS --log_file $LOG_NAME"

fi

if [ $LOG_FILE_ON = 2 ]; then

ARGS="$ARGS --syslog"

fi

if [ $DYN_SYSTEM_ON -ne 0 ]; then

ARGS="$ARGS --dyndns_system $DYN_SYSTEM"

fi

echo -n "starting $DESC: $NAME... "

start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS

echo "done."

fi

;;

stop)

echo -n "stopping $DESC: $NAME... "

start-stop-daemon -K -n $NAME

rm $LOG_NAME

echo "done."

;;

restart)

echo "restarting $DESC: $NAME... "

$0 stop

$0 start

echo "done."

;;

reload)

echo -n "reloading $DESC: $NAME... "

killall -HUP $(basename ${DAEMON})

echo "done."

;;

*)

echo "Usage: $0 {start|stop|restart|reload}"

exit 1

;;

esac

exit 0

pour no-ip

#!/bin/sh

DAEMON=/bin/inadyn

NAME=inadyn

DESC="InaDyn dynamic DNS Client"

INADYN_ON=1

INADYN_USERNAME=votre adresse msn pour rentrer sur no-ip

INADYN_PASSWORD=votre pass pour rentrer sur no-ip

INADYN_ALIAS=votre host exemple: (tysonsat.no-ip.org)

U**ATE_PERIOD=60000

LOG_FILE_ON=1

LOG_NAME=/var/log/inadyn.log

DYN_SYSTEM_ON=1

DYN_SYSTEM=default@no-ip.com

test -f $DAEMON || exit 0

set -e

case "$1" in

start)

if [ $INADYN_ON -ne 0 ]; then

ARGS="-u $INADYN_USERNAME -p $INADYN_PASSWORD -a $INADYN_ALIAS --u**ate_period $U**ATE_PERIOD"

if [ $LOG_FILE_ON = 1 ]; then

ARGS="$ARGS --log_file $LOG_NAME"

fi

if [ $LOG_FILE_ON = 2 ]; then

ARGS="$ARGS --syslog"

fi

if [ $DYN_SYSTEM_ON -ne 0 ]; then

ARGS="$ARGS --dyndns_system $DYN_SYSTEM"

fi

echo -n "starting $DESC: $NAME... "

start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS

echo "done."

fi

;;

stop)

echo -n "stopping $DESC: $NAME... "

start-stop-daemon -K -n $NAME

rm $LOG_NAME

echo "done."

;;

restart)

echo "restarting $DESC: $NAME... "

$0 stop

$0 start

echo "done."

;;

reload)

echo -n "reloading $DESC: $NAME... "

killall -HUP $(basename ${DAEMON})

echo "done."

;;

*)

echo "Usage: $0 {start|stop|restart|reload}"

exit 1

;;

esac

exit 0

 
Retour
Haut