Giter Club home page Giter Club logo

macfixdate's Introduction

This project was developed to deal with an issue I was seeing on some of the older Macbooks in our environment not being able to connect to wireless after their battery died. The root of the problem is that the cmos battery (or whatever the Apple equivalent is) had died and so when the battery died the clock got set back to sometime in 2001. 

It seems that wireless networks are particular when it comes to how out of date the clients clocks are before they will allow them to connect and update time from and NTP server. The clock can be a little out of date, just not too much. I expect that this script will work as written for a good number of years and will be able ot be updated by modifying line 14 to give it a new year when it stops working.

Useage

There are two files included, fixdate.sh and crontab.

While crontab is depricated in OSX it still works.

Put the crontab file in /etc/. If there is an existing crontab put the following in it:

@reboot root /usr/local/bin/fixdate.sh

Put the fixdate.sh in /usr/local/bin/fixdate.sh

Be sure that fixdate has +x. Ideally it should be owned by root and have 500 permissions that way it can't be edited to do anything nasty by other users.

Once these two files are in place the user only has to reboot to fix the problem if their time is out of date.

macfixdate's People

Contributors

afterspencer avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.