]>
Commit | Line | Data |
---|---|---|
0e12f878 TO |
1 | #!/bin/sh |
2 | ||
3 | # Source function library. | |
4 | . /etc/rc.d/init.d/functions | |
5 | ||
6 | # Source networking configuration. | |
7 | . /etc/sysconfig/network | |
8 | ||
9 | # Get service config | |
10 | if [ -f /etc/sysconfig/rdate ] ; then | |
11 | . /etc/sysconfig/rdate | |
12 | fi | |
13 | ||
14 | # Check that networking is up. | |
0fa23ef0 PG |
15 | if [ is_yes "${NETWORKING}" -a is_yes "${SET_TIME}" -a -n "${RDATE_SERVER}" ]; then |
16 | /usr/bin/rdate -s -l $RDATE_SERVER | |
0e12f878 | 17 | fi |