Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a weekly limit #22

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CODE/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: kidtimer
Version: 2.3-1
Version: 1.0-0
Section: utils
Priority: optional
Architecture: all
Depends: at, libnotify-bin, bsdutils
Installed-Size: 8
Maintainer: Michael Groves <grover66@gmail.com>
Homepage: http://github.com/grover66/kidtimer
Maintainer: Jim Dunphy <Jim.Dunphy@gmail.com>
Homepage: http://github.com/JimDunphy/kidtimer
Description: Set daily limits on computer time.
6 changes: 3 additions & 3 deletions CODE/etc/cron.d/kidtimer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0 * * * * root /usr/local/bin/kidtimer hourly
0 0 * * * root /usr/local/bin/kidtimer daily
#0 * * * * root /usr/local/bin/kidtimer hourly
#0 0 * * * root /usr/local/bin/kidtimer daily
* * * * * root /usr/local/bin/kidtimer check
@reboot root /usr/local/bin/kidtimer daily
#@reboot root /usr/local/bin/kidtimer daily
12 changes: 12 additions & 0 deletions CODE/usr/local/bin/99zzkidtimer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

# This script makes kidtimer update account status when the machine is woken up.
# For a laptop, these are the closest parallels to turning on a desktop.
# /usr/lib/pm-utils/sleep.d --- so kidtimer will run when my computer is
# awoken from sleep

case $1 in
resume|thaw)
/usr/local/bin/kidtimer check
;;
esac
5 changes: 5 additions & 0 deletions CODE/usr/local/bin/README.JAD
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Original from:
https://github.com/grover66/kidtimer

# provided the print out to my 10 year old to see if she could find holes
enscript --pretty-print --color -2r -MLetter -PHP-Officejet-Pro-8600 kidtimer
2 changes: 2 additions & 0 deletions CODE/usr/local/bin/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
kids time down every 60mins
code to get more time
Loading