save-rtc.sh 336 B

12345678910111213
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides: save-rtc
  4. # Required-Start:
  5. # Required-Stop: $local_fs hwclock
  6. # Default-Start: S
  7. # Default-Stop: 0 6
  8. # Short-Description: Store system clock into file
  9. # Description:
  10. ### END INIT INFO
  11. # Update the timestamp
  12. date -u +%4Y%2m%2d%2H%2M%2S 2>/dev/null > /etc/timestamp