~charles/dotfiles

ref: f2b0d150e08f193450b7f61acd36aafa1aee8e04 dotfiles/scripts/install_dpmsconf.sh -rwxr-xr-x 287 bytes
f2b0d150Charles Daniels add lstodo 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# install dpmsconf cronjob for the current user

if [ $(crontab -l 2>/dev/null | wc -l) -eq 0 ] ; then
	# user has no crontab
	echo '* * * * * $HOME/bin/apply-dpms' | crontab  -
else
	(crontab -l | grep -v "apply-dpms" ; echo '* * * * * $HOME/bin/apply-dpms') | crontab  -
fi