English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Diff of /branches/freewrt_1_0/package/ntpclient/files/ntpclient.init

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3357 by tha, Mon Jun 11 23:24:02 2007 UTC revision 3358 by tg, Fri Jul 27 08:45:46 2007 UTC
# Line 12  start) Line 12  start)
12          default_flags="-c 1 -s"          default_flags="-c 1 -s"
13          if [ -e /etc/ntpd.conf ]; then          if [ -e /etc/ntpd.conf ]; then
14                  tmp=`cat /etc/ntpd.conf | grep ^server | awk '{ print $2 }' | head -n1`                  tmp=`cat /etc/ntpd.conf | grep ^server | awk '{ print $2 }' | head -n1`
15                  tmp="${tmp:-pool.ntp.org}"                  tmp="${tmp:-1.freewrt.pool.ntp.org}"
16          fi          fi
17          ntpclient_server="${ntpclient_server:-$tmp}"          ntpclient_server="${ntpclient_server:-$tmp}"
18          ntpclient_flags="${ntpclient_flags:-$default_flags}"          ntpclient_flags="${ntpclient_flags:-$default_flags}"
# Line 32  restart) Line 32  restart)
32          ;;          ;;
33  esac  esac
34  exit $?  exit $?
   

Legend:
Removed from v.3357  
changed lines
  Added in v.3358

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20