Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start on MOUNTS_OK
- stop on starting shutdown
- console none
- script
- [[ $(date +%Y) = 2000 ]] || exit
- until
- awk '($2=="00000000" && $8=="00000000"){online=1} END{if (!online) exit 1}' /proc/net/route
- do
- sleep 1
- done
- while [[ $(date +%Y) = 2000 ]] ;do
- ntpdate pool.ntp.org
- sleep 1
- done
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement