Bashify results testing for selinux policy loading
---
init | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/init b/init
index 2ebf1b0..2b7aa36 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
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html