summaryrefslogtreecommitdiffstats
path: root/src.etc
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-09 15:06:33 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-09 15:07:38 (EDT)
commitfbefb18e5b4b04949a82ba470178c84c4cc97ac5 (patch)
tree15043a1e474e67fd01eb9f06431215630aa64dc3 /src.etc
parentd3b31d2ea46cbdc2edf39341584167a7a4b1be17 (diff)
/etc/rc.common: Don't disable *able actions.
Diffstat (limited to 'src.etc')
-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 7ddc27e..50c6020 100644
--- a/src.etc/rc.common
+++ b/src.etc/rc.common
@@ -37,9 +37,9 @@ main()
fi
action="${2:-<unknown>}"
if [ "x${ALL_CMDS#* ${action} }" != "x${ALL_CMDS}" ]; then
- if [ -f /etc/rc.policy ]; then
+ [ "x${action%able}" = "x${action}" ] && \
+ [ -f /etc/rc.policy ] && \
[ "x$(cat /etc/rc.policy)" = 'xdisabled' ] && return 0
- fi
${action}
es=${?}
log_end ${es}