--- sh/tmpfiles.sh.in~ +++ sh/tmpfiles.sh.in @@ -43,13 +43,13 @@ _b() { # Create a block device node if it doesn't exist yet local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6 - [ ! -e "$path" ] && dryrun_or_real mknod $path b ${arg%:*} ${arg#*:} + if [ ! -e "$path" ]; then dryrun_or_real mknod $path b ${arg%:*} ${arg#*:}; fi } _c() { # Create a character device node if it doesn't exist yet local path=$1 mode=$2 uid=$3 gid=$4 age=$5 arg=$6 - [ ! -e "$path" ] && dryrun_or_real mknod $path c ${arg%:*} ${arg#*:} + if [ ! -e "$path" ]; then dryrun_or_real mknod $path c ${arg%:*} ${arg#*:}; fi }