home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- #Puppy xset lacks some features.
-
- /usr/X11R6/bin/gxset
-
- #v1.0.7
- #Xorg should be able to handle all xset settings...
- if [ "`readlink /usr/X11R6/bin/X`" = "Xorg" ];then
- chmod 755 /root/.xset.sh
- exit
- fi
-
- if [ -f /root/.xset.sh ];then
- chmod 755 /root/.xset.sh
- #remove comment lines...
- #we need to get rid of "r rate 0 0" (for example)...
- #also get rid of dpms stuff "dpms 0 0 0 -dpms" ...
- cat /root/.xset.sh | grep -v '# ' | sed 's/r rate [0-9]* [0-9]* //g' | sed 's/dpms [0-9]* [0-9]* [0-9]* //g' | sed 's/ \+dpms//g' | sed 's/ -dpms//g' > /tmp/tmpxset.sh
- sync
- if [ "`cat /tmp/tmpxset.sh | grep --extended-regexp " r off| r on"`" = "" ];then
- cat /tmp/tmpxset.sh | sed 's/xset /xset r on /g' > /root/.xset.sh
- fi
- sync
- fi
-