rpms/i8kutils/devel i8kbuttons.init,1.4,1.5
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Tue Aug 23 12:36:54 UTC 2005
Author: thias
Update of /cvs/extras/rpms/i8kutils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10350
Modified Files:
i8kbuttons.init
Log Message:
Useless cleanup of the init script.
Index: i8kbuttons.init
===================================================================
RCS file: /cvs/extras/rpms/i8kutils/devel/i8kbuttons.init,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- i8kbuttons.init 16 Aug 2005 12:42:33 -0000 1.4
+++ i8kbuttons.init 23 Aug 2005 12:36:52 -0000 1.5
@@ -1,16 +1,16 @@
#!/bin/bash
#
-# i8kbuttons Make the multimedia buttons (volume up/down, mute)
-# on dell inspiron work
+# i8kbuttons Make the multimedia buttons (volume up/down, mute) on Dell
+# Inspiron laptops work
#
# chkconfig: 2345 10 90
-# description: Make the multimedia buttons (volume up/down, mute) on dell
-# inspiron work
+# description: Make the multimedia buttons (volume up/down, mute) on Dell
+# Inspiron laptops work
#
# ChangeLog: 2003/9/9 Jeremy Brand <jeremy at nirvani.net>
# - Amount of 8 was quite dynamic, changed to 4.
# - Also added PCM changes in addition to master volume.
-#
+#
# Source function library.
. /etc/init.d/functions
@@ -23,7 +23,7 @@
# See how we were called.
case "$1" in
start)
- echo -n $"Starting $prog: "
+ echo -n $"Starting $prog: "
/sbin/modprobe i8k force=1
if pidofproc $prog &>/dev/null; then
echo_failure
@@ -31,18 +31,18 @@
else
$prog --up "$amixer -q set Master $amount+" --down "$amixer -q set Master $amount-" --mute "$amixer -q set Master 0" &
echo_success
- touch /var/lock/subsys/$prog
+ touch /var/lock/subsys/$prog
RETVAL=0
fi
echo
- ;;
+ ;;
stop)
- echo -n $"Shutting down $prog: "
+ echo -n $"Shutting down $prog: "
killproc $prog
RETVAL=$?
- echo
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
- ;;
+ echo
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
+ ;;
status)
status $prog
RETVAL=$?
@@ -53,8 +53,8 @@
RETVAL=$?
;;
*)
- echo $"Usage: $0 {start|stop|restart|reload|status}"
- exit 1
+ echo $"Usage: $0 {start|stop|restart|reload|status}"
+ exit 1
esac
exit $RETVAL
More information about the fedora-extras-commits
mailing list