From: Victor Lowther Date: Fri, 13 Feb 2009 12:41:45 +0000 (-0800) Subject: [PATCH 06/50] Bashify results testing for selinux policy loading X-Git-Tag: 0.1~472 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39b4c02111cae677cc33c731ab146c94404110c7;p=thirdparty%2Fdracut.git [PATCH 06/50] Bashify results testing for selinux policy loading --- diff --git a/init b/init index 2ebf1b059..2b7aa3641 100755 --- a/init +++ b/init @@ -92,7 +92,7 @@ mount -t sysfs /sys $NEWROOT/sys # FIXME: load selinux policy. this should really be done after we switchroot if [ -x $NEWROOT/usr/sbin/load_policy ]; then chroot $NEWROOT /usr/sbin/load_policy -i - if [ $? -eq 3 ]; then + if (($? == 3)); then echo "Initial SELinux policy load failed and enforcing mode requested." echo "Not continuing" sleep 100d