public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-laptop/i8kutils/files: i8k.init-r1
@ 2008-10-29 20:28 Olivier Crete (tester)
  0 siblings, 0 replies; only message in thread
From: Olivier Crete (tester) @ 2008-10-29 20:28 UTC (permalink / raw
  To: gentoo-commits

tester      08/10/29 20:28:43

  Added:                i8k.init-r1
  Log:
  Fix init script, fixes bug #216742
  (Portage version: 2.1.4.5)

Revision  Changes    Path
1.1                  app-laptop/i8kutils/files/i8k.init-r1

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/i8kutils/files/i8k.init-r1?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/i8kutils/files/i8k.init-r1?rev=1.1&content-type=text/plain

Index: i8k.init-r1
===================================================================
#!/sbin/runscript

depend() {
	after alsasound
	after modules
}

checkconfig() {
	if [ ! -e /proc/i8k ] ; then
		eerror "The i8k driver is not installed"
		return 1
	fi
}

start() {
	checkconfig || return 1
	if [ -n "$VOLUME_UP$VOLUME_DOWN$VOLUME_MUTE" ] ; then
		ebegin "Starting i8kbuttons"
		start-stop-daemon --start --quiet --pidfile /var/run/i8kbuttons.pid \
			--make-pidfile --exec /usr/bin/i8kbuttons --background \
			-- ${VOLUME_UP:+-u "${VOLUME_UP}"} \
			   ${VOLUME_DOWN:+-d "$VOLUME_DOWN"} \
			   ${VOLUME_MUTE:+-m "$VOLUME_MUTE"} \
			   ${BUTTON_REPEAT:+-r "$BUTTON_REPEAT"}
		eend $?
	fi
	if [ ! -n "$NOMON" ]; then
		ebegin "Starting i8kmon"
		start-stop-daemon --start -b --quiet  \
			--pidfile /var/run/i8kmon.pid \
			--make-pidfile \
			--exec /usr/bin/i8kmon --background \
			--name "tclsh /usr/bin/i8kmon" \
			-- -d ${NOAUTO:+-na} ${TIMEOUT:+-t $TIMEOUT}
		eend $?
	fi
}

stop() {
	if [ -n "$VOLUME_UP$VOLUME_DOWN$VOLUME_MUTE" ] ; then
		ebegin "Stopping i8kbuttons"
		start-stop-daemon --stop --quiet --pidfile /var/run/i8kbuttons.pid
		eend $?
	fi
	if [ ! -n "$NOMON" ]; then
		ebegin "Stopping i8kmon"
		start-stop-daemon --stop --quiet --pidfile /var/run/i8kmon.pid
		eend $?
	fi
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-29 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 20:28 [gentoo-commits] gentoo-x86 commit in app-laptop/i8kutils/files: i8k.init-r1 Olivier Crete (tester)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox