. "$BST_LIB" # init-system-helpers: Debian's invoke-rc.d(8) + service(8) wrappers over # /etc/init.d — the interface dpkg maintainer scripts call on the postinst # path. Pure POSIX-sh scripts (no compile). The poky recipe installs the # service script raw, so `service --version` reports the unsubstituted # "__VERSION__" placeholder — the assertion is on the banner, not a number. require invoke-rc.d init-system-helpers/invoke-rc.d require service init-system-helpers/service # both split packages registered with dpkg check_out init-system-helpers/pkg-invoke-rc.d "install ok installed" \ sh -c "dpkg -s init-system-helpers-invoke-rc.d 2>&1" check_out init-system-helpers/pkg-service "install ok installed" \ sh -c "dpkg -s init-system-helpers-service 2>&1" # no-op invocations exit cleanly check init-system-helpers/invoke-rc.d-help invoke-rc.d --help check_out init-system-helpers/service-version "service ver." \ sh -c "service --version 2>&1" # bare `service` is a usage error by contract check_rc init-system-helpers/service-usage 1 service # real dispatch: service(8) execs /etc/init.d/ — proven with the # package-shipped inert initscript /etc/init.d/bst-dummy (the deployed rootfs # is read-only at browser runtime, so the probe target ships at build time, # not created here). if [ -x /etc/init.d/bst-dummy ]; then check_out init-system-helpers/service-dispatch "bst-dummy-status-ok" \ service bst-dummy status else bst_notok init-system-helpers/service-dispatch "/etc/init.d/bst-dummy not shipped (brintos-selftests payload missing)" fi