Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

set the clock on non-SDC installations #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/svc/method/smartdc-config
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ case "$1" in
echo "Set default ntp hosts (${servers})."
fi
fi
# set the clock on non-SDC installations
if /bin/bootparams | grep "^smartos=true" >/dev/null 2>&1; then
if [[ -n ${servers} ]]; then # networking guard
ntpdate -u -t 5 -- "${servers}" >/dev/null 2>&1
fi
fi
# set the keymap. For dvorak for instance
if [[ -n ${CONFIG_default_keymap} ]]; then
/usr/bin/loadkeys ${CONFIG_default_keymap}
Expand Down