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

Collapse All | Expand All

(-)a/sh/tmpfiles.sh.in (-4 / +6 lines)
Lines 54-70 relabel() { Link Here
54
_b() {
54
_b() {
55
	# Create a block device node if it doesn't exist yet
55
	# Create a block device node if it doesn't exist yet
56
	local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6
56
	local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6
57
	[ ! -e "$path" ] && \
57
	if [ ! -e "$path" ]; then
58
		dryrun_or_real mknod -m $mode $path b ${arg%:*} ${arg#*:} && \
58
		dryrun_or_real mknod -m $mode $path b ${arg%:*} ${arg#*:}
59
		dryrun_or_real chown $uid:$gid $path
59
		dryrun_or_real chown $uid:$gid $path
60
	fi
60
}
61
}
61
62
62
_c() {
63
_c() {
63
	# Create a character device node if it doesn't exist yet
64
	# Create a character device node if it doesn't exist yet
64
	local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6
65
	local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6
65
	[ ! -e "$path" ] && \
66
	if [ ! -e "$path" ]; then
66
		dryrun_or_real mknod -m $mode $path c ${arg%:*} ${arg#*:} && \
67
		dryrun_or_real mknod -m $mode $path c ${arg%:*} ${arg#*:}
67
		dryrun_or_real chown $uid:$gid $path
68
		dryrun_or_real chown $uid:$gid $path
69
	fi
68
}
70
}
69
71
70
72

Return to bug 478336