The situation is close: you want to know if there is an explicit setting in rc.conf (and not what value it has after inheriting from defaults/rc.conf). Maybe you can't use the same function verbatim, but a very close clone of it (or even factor out the common part). Martin