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/sysfs.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'init.d/sysfs.in') diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 07f62347..60f629f1 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.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="Mount the sys filesystem." @@ -31,7 +31,8 @@ mount_sys() mount_misc() { # Setup Kernel Support for securityfs - if [ -d /sys/kernel/security ] && ! mountinfo -q /sys/kernel/security; then + if [ -d /sys/kernel/security ] && \ + ! mountinfo -q /sys/kernel/security; then if grep -qs securityfs /proc/filesystems; then ebegin "Mounting security filesystem" mount -n -t securityfs -o nodev,noexec,nosuid \ @@ -56,8 +57,8 @@ start() local retval mount_sys retval=$? - if [ ${retval} -eq 0 ]; then + if [ $retval -eq 0 ]; then mount_misc fi - return ${retval} + return $retval } -- cgit v1.2.3