95rootfs-block/block-genrules.sh: beautify code
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Sep 2009 09:12:13 +0000 (11:12 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Sep 2009 13:00:24 +0000 (15:00 +0200)
modules.d/95rootfs-block/block-genrules.sh

index 614c7ce..1b650f8 100644 (file)
@@ -5,10 +5,9 @@ if [ "${root%%:*}" = "block" ]; then
     printf 'SYMLINK=="%s", SYMLINK+="root"\n' \
        ${root#block:/dev/} 
     ) >> /etc/udev/rules.d/99-mount.rules
-    (
+    
     printf '[ -e "%s" ] && { ln -s "%s" /dev/root 2>/dev/null; rm "$job"; }\n' \
-       "${root#block:}" "${root#block:}"
-    ) >> /initqueue-settled/blocksymlink.sh
+       "${root#block:}" "${root#block:}" >> /initqueue-settled/blocksymlink.sh
 
     echo '[ -e /dev/root ]' > /initqueue-finished/block.sh
 fi