From de70b18ddb217eb2b59b4e18ba28d2c6add174b9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 15:43:22 -0400 Subject: /etc/rc.common: Fix /etc/rc.policy check. Also s/-e/-f/. --- diff --git a/src.etc/rc.common b/src.etc/rc.common index 8bd589c..39ea3c2 100644 --- a/src.etc/rc.common +++ b/src.etc/rc.common @@ -37,8 +37,8 @@ main() fi action="${2:-}" if [ "x${ALL_CMDS#* ${action} }" != "x${ALL_CMDS}" ]; then - if [ "x${action}" = 'xstart' ] && [ -e /etc/rc.policy ]; then - [ "x$(cat /etc/rc.policy)" = 'disabled' ] && return 0 + if [ "x${action}" = 'xstart' ] && [ -f /etc/rc.policy ]; then + [ "x$(cat /etc/rc.policy)" = 'xdisabled' ] && return 0 fi ${action} es=${?} -- cgit v0.9.1