Skip to content

Commit

Permalink
Sync time before start majestic
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigFisher committed Jul 11, 2021
1 parent ba89f91 commit 7f0f4c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hisi-osdrv1/script/load_hisilicon
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ start_majestic()
# Use it for stopping service: killall -sigint majestic
sleep 1
export SENSOR=$SNS_TYPE
sleep 30
ntpd -n -q -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
majestic 2>&1 | logger -p daemon.info -t majestic &
}

Expand Down
2 changes: 2 additions & 0 deletions hisi-osdrv2/script/load_hisilicon
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ run_majestic()
# Use it for stopping service: killall -sigint majestic
sleep 1
export SENSOR=$SNS_TYPE
sleep 40
ntpd -n -q -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
majestic 2>&1 | logger -p daemon.info -t majestic &
}

Expand Down
2 changes: 2 additions & 0 deletions hisi-osdrv3/script/load_hisilicon
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ start_majestic()
# Use it for stopping service: killall -sigint majestic
sleep 1
export SENSOR=$SNS_TYPE
sleep 30
ntpd -n -q -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
majestic 2>&1 | logger -p daemon.info -t majestic &
}

Expand Down

0 comments on commit 7f0f4c2

Please sign in to comment.