Author Topic: Configure inadyn on gemini  (Read 3333 times)

0 Members and 1 Guest are viewing this topic.

Offline Tirkic

  • Administrator
  • Hero Member
  • *****
  • Posts: 16512
Configure inadyn on gemini
« on: November 17, 2009, 10:57:53 AM »
Configure inadyn on gemini

on the dreambox 500 S var-->>script-->> inadyn_script.sh open and down letters by then paste then save then updating auto

Code: You are not allowed to view links. Register or Login
#!/bin/sh
 DAEMON=/bin/inadyn
 NAME=inadyn
 DESC="InaDyn dynamic DNS Client"
 INADYN_ON=1
 INADYN_USERNAME=here is dydns.com login name
 INADYN_PASSWORD=here is dyndns.com password
 INADYN_ALIAS=this is your host & dns name
 UPDATE_PERIOD=900000-->> 1minute 60000 period ,1 second is 1000 period , i think you must use 15 minutes =900000
 LOG_FILE_ON=2
 LOG_NAME=/var/log/inadyn.log
 DYN_SYSTEM_ON=1
 [email protected]
 
 
 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 --update_period $UPDATE_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
  [ -e $LOG_NAME ] && rm -rf $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