public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-fs/udev/files: udev-postmount-130-r2.initd udev.initd
@ 2008-10-28 21:59 Matthias Schwarzott (zzam)
  0 siblings, 0 replies; only message in thread
From: Matthias Schwarzott (zzam) @ 2008-10-28 21:59 UTC (permalink / raw
  To: gentoo-commits

zzam        08/10/28 21:59:05

  Added:                udev-postmount-130-r2.initd udev.initd
  Log:
  Add udev init-script for new, not yet in tree, openrc-versions (>0.3.0), Bug #240984.
  (Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo i686)

Revision  Changes    Path
1.1                  sys-fs/udev/files/udev-postmount-130-r2.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/udev-postmount-130-r2.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/udev-postmount-130-r2.initd?rev=1.1&content-type=text/plain

Index: udev-postmount-130-r2.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/udev-postmount-130-r2.initd,v 1.1 2008/10/28 21:59:05 zzam Exp $

depend() {
	need localmount
}

start() {
	# check if this system uses udev
	[ -d /dev/.udev/ ] || return 0

	einfo "udev postmount cleanup"

	# store persistent-rules that got created while booting
	# when / was still read-only
	/lib/udev/move_tmp_persistent_rules.sh
}

stop() {
	:
}

# vim:ts=4



1.1                  sys-fs/udev/files/udev.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/udev.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/udev.initd?rev=1.1&content-type=text/plain

Index: udev.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend()
{
	if [ -e /lib/librc.so -a -f /etc/init.d/sysfs ]; then
		# on baselayout-1 this causes
		# dependency-cycles with checkroot (before *)
		# require new enough openrc with sysinit being extra runlevel
		provide dev
		need sysfs
		before checkfs fsck
	fi
}

start()
{
	if [ ! -e /lib/librc.so ]; then
		eerror "The $SVCNAME init-script is written for baselayout-2!"
		eerror "Please do not use it with baselayout-1!".
		return 1
	fi

	start_addon udev || return 1
	local svcfile= svc= services=
	for svcfile in "${RC_SVCDIR}"/hotplugged/*; do
		svc="${svcfile##*/}"
		[ -x "${svcfile}" ] || continue

		# for debug
		#[ "$svc" = "udev-postmount" ] && einfo "Injected udev-postmount service"

		# do not show this
		[ "$svc" = "udev-postmount" ] && continue

		services="${services} ${svc}"
	done
	[ -n "${services}" ] && einfo "Device initiated services:${HILITE}${services}${NORMAL}"
	return 0
}

stop()
{
	# this stop-part does not not yet exist
	stop_addon udev
}






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

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 21:59 [gentoo-commits] gentoo-x86 commit in sys-fs/udev/files: udev-postmount-130-r2.initd udev.initd Matthias Schwarzott (zzam)

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