|
From: <rap...@us...> - 2004-01-06 01:14:48
|
Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv2561/scripts
Modified Files:
lm_sensors
Added Files:
blankscreen
Log Message:
split screen blanking
--- NEW FILE: blankscreen ---
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: blankscreen
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 5
# Default-Stop: 0 1 6
# Description: disables screen blanking
### END INIT INFO
NAME="SCREEN_BLANKING"
# settings
source /etc/sysconfig/config
# parameters
# source function library
source /etc/init.d/functions
eval START=\$START_$CONFIGNAME
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
test $link = $base && START=yes
test "$START" = "yes" || exit 0
export TERM=linux
case "$1" in
start)
echo -n "Disabling blanking on: "
for i in $(seq 1 12)
do
/usr/bin/setterm -powersave off < /dev/tty$i
/usr/bin/setterm -blank 0 < /dev/tty$i
/usr/bin/setterm -powersave off < /dev/tty$i
echo -n " $i"
done
echo "done"
;;
stop)
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
Index: lm_sensors
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/lm_sensors,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- lm_sensors 5 Jan 2004 20:50:58 -0000 1.4
+++ lm_sensors 6 Jan 2004 01:14:45 -0000 1.5
@@ -15,7 +15,7 @@
### END INIT INFO
-NAME="lm_sensors"
+NAME="LM_SENSORS"
# settings
source /etc/sysconfig/config
@@ -33,15 +33,6 @@
test $link = $base && START=yes
test "$START" = "yes" || exit 0
-
-export TERM=linux
-for i in $(seq 1 12)
-do
- /usr/bin/setterm -powersave off < /dev/tty$i
- /usr/bin/setterm -blank 0 < /dev/tty$i
- /usr/bin/setterm -powersave off < /dev/tty$i
-echo -n " $i"
-done
case "$1" in
start)
|