SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. timedatectl set-ntp false
  4. if grep -q "+" $1
  5. then
  6.         echo "+++"
  7.         echo "-" > $1
  8.         sudo date +%T -s "$(date +%T -d '+2 minutes')"
  9. else
  10.         echo "---"
  11.         echo "+" > $1
  12.         sudo date +%T -s "$(date +%T -d '-2 minutes')"
  13. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top