[arch-projects] [initscripts][PATCH 1/7] avoid unnecessary escaping of newlines

Dave Reisner d at falconindy.com
Sun Nov 6 19:27:35 EST 2011


The bash parser assumes that an expression continues when || is at the
end of a line.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 rc.sysinit |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/rc.sysinit b/rc.sysinit
index 1c74bd9..eb66935 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -15,14 +15,14 @@ printsep
 mountpoint -q /proc    || mount -n -t proc proc /proc -o nosuid,noexec,nodev
 mountpoint -q /sys     || mount -n -t sysfs sys /sys -o nosuid,noexec,nodev
 mountpoint -q /run     || mount -n -t tmpfs run /run -o mode=0755,size=10M,nosuid,nodev
-mountpoint -q /dev     || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid \
-	|| mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
+mountpoint -q /dev     || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid ||
+	mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
 mkdir -p -m 1777 /run/lock
 mkdir -p /dev/{pts,shm}
-mountpoint -q /dev/pts || mount -n /dev/pts &>/dev/null \
-	|| mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
-mountpoint -q /dev/shm || mount -n /dev/shm &>/dev/null \
-	|| mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev
+mountpoint -q /dev/pts || mount -n /dev/pts &>/dev/null ||
+	mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
+mountpoint -q /dev/shm || mount -n /dev/shm &>/dev/null ||
+	mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev
 
 # remount root ro to allow for fsck later on, we remount now to
 # make sure nothing can open files rw on root which would block a remount
-- 
1.7.7.2



More information about the arch-projects mailing list