aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorDan Walsh <dwalsh@redhat.com>2004-09-08 17:41:42 +0000
committerDan Walsh <dwalsh@redhat.com>2004-09-08 17:41:42 +0000
commit5ff6edd0bc3e8b852c4543bdd751c3db296a8824 (patch)
tree12934cafefcd4d82a935c2d8b09dcb73d654f8a3 /rc.d/rc.sysinit
parent8e1b9651515fe64ae001af7f6bdbcc508215ec10 (diff)
downloadinitscripts-5ff6edd0bc3e8b852c4543bdd751c3db296a8824.tar
initscripts-5ff6edd0bc3e8b852c4543bdd751c3db296a8824.tar.gz
initscripts-5ff6edd0bc3e8b852c4543bdd751c3db296a8824.tar.bz2
initscripts-5ff6edd0bc3e8b852c4543bdd751c3db296a8824.tar.xz
initscripts-5ff6edd0bc3e8b852c4543bdd751c3db296a8824.zip
Fix call to restoreconr7-78
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() {