Advertisement
Guest User

Untitled

a guest
Dec 1st, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. start on MOUNTS_OK
  2. stop on starting shutdown
  3. console none
  4. script
  5. [[ $(date +%Y) = 2000 ]] || exit
  6. until
  7. awk '($2=="00000000" && $8=="00000000"){online=1} END{if (!online) exit 1}' /proc/net/route
  8. do
  9. sleep 1
  10. done
  11. while [[ $(date +%Y) = 2000 ]] ;do
  12. ntpdate pool.ntp.org
  13. sleep 1
  14. done
  15. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement