equal
deleted
inserted
replaced
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
21 # |
22 # |
22 # |
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 # Standard prolog |
26 # Standard prolog |
27 # |
27 # |
28 . /lib/svc/share/smf_include.sh |
28 . /lib/svc/share/smf_include.sh |
90 SYNC_INTVL="`get_prop sync_interval`" |
90 SYNC_INTVL="`get_prop sync_interval`" |
91 if [ "$SYNC_INTVL" -gt 0 -a "$SYNC_INTVL" -ne 1 ]; then |
91 if [ "$SYNC_INTVL" -gt 0 -a "$SYNC_INTVL" -ne 1 ]; then |
92 CMD_LINE_ARGS="$CMD_LINE_ARGS -y $SYNC_INTVL" |
92 CMD_LINE_ARGS="$CMD_LINE_ARGS -y $SYNC_INTVL" |
93 fi |
93 fi |
94 |
94 |
|
95 ENABLE_LOGGING="`get_prop enable_logging`" |
95 LOGFILE="`get_prop logfile`" |
96 LOGFILE="`get_prop logfile`" |
96 if [ -n "$LOGFILE" -a "$LOGFILE" != "/var/log/ptp.log" ]; then |
97 if [ -n "$LOGFILE" -a "$ENABLE_LOGGING" = "true" ]; then |
97 CMD_LINE_ARGS="$CMD_LINE_ARGS -f $LOGFILE" |
98 CMD_LINE_ARGS="$CMD_LINE_ARGS -f $LOGFILE" |
98 fi |
99 fi |
99 |
100 |
100 OTHER_OPTIONS="`get_prop other_options`" |
101 OTHER_OPTIONS="`get_prop other_options`" |
101 if [ -n "$OTHER_OPTIONS" ]; then |
102 if [ -n "$OTHER_OPTIONS" ]; then |