I wonder if it wouldn't be a good idea, to turn
/lib/init/init-d-script into a real binary (similar to openrc).

This would way we could drop this rather ugly construct:
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and
sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi

and replace it with something like

#!/lib/init/init-d-script

This small helper binary would execute the init script (using a helper
shell library) and could pass $@ along properly.
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to