aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index b40c31d0..db6b3d10 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -41,9 +41,9 @@ if [ -n "$selinuxfs" ] && [ "`cat /proc/self/attr/current`" != "kernel" ]; then
fi
fi
-if [ "$SELINUX" = "1" -a -x /sbin/restorecon ] && fgrep -q " /dev " /proc/mounts ; then
- restorecon /dev /dev/null
- restorecon /dev/* 2> /dev/null
+if [ -x /sbin/restorecon ] && fgrep -q " /dev " /proc/mounts ; then
+ /sbin/restorecon /dev /dev/null
+ /sbin/restorecon /dev/* 2> /dev/null
fi
disable_selinux() {