Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 391945 | Differences between
and this patch

Collapse All | Expand All

(-)a/init.d/migrate-run.in (-6 / +12 lines)
Lines 19-30 start() Link Here
19
stop()
19
stop()
20
{
20
{
21
	einfo "completing /var/run and /var/lock migration."
21
	einfo "completing /var/run and /var/lock migration."
22
	if [ -d /run -a ! -L /var/lock -a ! -L /var/run ]; then
22
	if [ -d /run/lock -a ! -L /var/lock ]; then
23
		ebegin "Migrating /var/lock and /var/run to /run"
23
		ebegin "Migrating /var/lock to /run"
24
		rm -rf /var/lock /var/run
24
		rm -rf /var/lock
25
		ln -s /var/lock /run/lock
25
		ln -s ../run/lock /var/lock
26
		ln -s /var/run /run
26
		eend $?
27
		eend 0
27
	fi
28
29
	if [ -d /run -a ! -L /var/run ]; then
30
		ebegin "Migrating /var/run to /run"
31
		rm -rf /var/run
32
		ln -s ../run /var/run
33
		eend $?
28
	fi
34
	fi
29
	return 0
35
	return 0
30
}
36
}

Return to bug 391945