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