diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-06-23 20:07:41 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-06-23 20:07:41 -0500 |
commit | 6209b9c9f77af5f7ca0618a44bfd0b5955d7d678 (patch) | |
tree | df9b6b5ce94183300a18591e744c45080583e6af /hscript/script_i.hh | |
parent | 19d1c74b4c6baabc4b70216e4efc8800044ea4ac (diff) | |
download | horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.tar.gz horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.tar.bz2 horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.tar.xz horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.zip |
hscript: Implement runlevel support in svcenable key
Diffstat (limited to 'hscript/script_i.hh')
-rw-r--r-- | hscript/script_i.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/script_i.hh b/hscript/script_i.hh index b223608..abe56ec 100644 --- a/hscript/script_i.hh +++ b/hscript/script_i.hh @@ -257,10 +257,10 @@ struct Script::ScriptPrivate { const ScriptOptions &) { std::unique_ptr<SvcEnable> svc(dynamic_cast<SvcEnable *>(obj)); for(const auto &s : svcs_enable) { - if(s->value() == svc->value()) { + if(s->service() == svc->service()) { if(warn) *warn += 1; output_warning(pos, "svcenable: service already enabled", - s->value()); + s->service()); return true; } } |