post-install 431 B

1234567891011121314151617181920
  1. echo "Creating ${rootdir}/run/initctl interface, if needed ..."
  2. if test ! -e "${rootdir}/run/initctl" || \
  3. test ! -p "${rootdir}/run/initctl"
  4. then
  5. mkdir -p -- "${rootdir}/run"
  6. rm -f -- "${rootdir}/run/initctl"
  7. mknod -m 600 -- "${rootdir}/run/initctl" p
  8. fi
  9. # Reload init(8)
  10. # Only reload the init if 'rootdir' was not given
  11. if test -z "$rootdir"
  12. then
  13. echo "Reloading PID 1 ..."
  14. init U || kill -s HUP 1
  15. fi