From e70a1429564a8fce5036c351b010a47dbb6c28b7 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 27 Apr 2009 07:51:18 +0000 Subject: Style. --- init.d/procfs.in | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'init.d/procfs.in') diff --git a/init.d/procfs.in b/init.d/procfs.in index b6dfbb6..838b2ac 100644 --- a/init.d/procfs.in +++ b/init.d/procfs.in @@ -1,5 +1,5 @@ #!@PREFIX@/sbin/runscript -# Copyright 2007-2008 Roy Marples +# Copyright 2007-2009 Roy Marples # All rights reserved. Released under the 2-clause BSD license. description="Mounts misc filesystems in /proc." @@ -25,13 +25,13 @@ start() # while older kernels have 'usbdevfs'. if [ -d /proc/bus/usb -a ! -e /proc/bus/usb/devices ]; then local usbfs=$(grep -Fow usbfs /proc/filesystems || - grep -Fow usbdevfs /proc/filesystems) - if [ -n "${usbfs}" ]; then - ebegin "Mounting USB device filesystem [${usbfs}]" + grep -Fow usbdevfs /proc/filesystems) + if [ -n "$usbfs" ]; then + ebegin "Mounting USB device filesystem [$usbfs]" local usbgid="$(getent group usb | \ sed -e 's/.*:.*:\(.*\):.*/\1/')" - mount -t ${usbfs} \ - -o ${usbgid:+devmode=0664,devgid=${usbgid},}noexec,nosuid \ + mount -t $usbfs \ + -o ${usbgid:+devmode=0664,devgid=$usbgid,}noexec,nosuid \ usbfs /proc/bus/usb eend $? fi @@ -48,7 +48,8 @@ start() fi # Setup Kernel Support for miscellaneous Binary Formats - if [ -d /proc/sys/fs/binfmt_misc ] && ! mountinfo -q /proc/sys/fs/binfmt_misc; then + if [ -d /proc/sys/fs/binfmt_misc ] \ + && ! mountinfo -q /proc/sys/fs/binfmt_misc; then if grep -qs binfmt_misc /proc/filesystems; then ebegin "Mounting misc binary format filesystem" mount -t binfmt_misc -o nodev,noexec,nosuid \ -- cgit v1.2.3