summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 15:43:22 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 15:43:22 (EDT)
commitde70b18ddb217eb2b59b4e18ba28d2c6add174b9 (patch)
tree5da7aefa87b24f6719b251087a637f9af697b9a8
parente21232fe22e29717e48cabe0bd9e3337d36afcec (diff)
/etc/rc.common: Fix /etc/rc.policy check.
Also s/-e/-f/.
-rw-r--r--src.etc/rc.common4
1 files changed, 2 insertions, 2 deletions
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:-<unknown>}"
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=${?}