diff options
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r-- | init.d/sysfs.in | 9 |
1 files changed, 5 insertions, 4 deletions
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 <roy@marples.name> +# Copyright 2007-2009 Roy Marples <roy@marples.name> # 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 } |