blob: 1843304a239d1dbb5e1e5b0e6db13a04fd704b5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# rc.lib -- common functions for rc.boot and rc.shutdown
# shellcheck disable=1090
# Functions for rc.boot and rc.shutdown
out() { printf '\033[1;36m-> \033[m\033[1m%s\033[m\n' "$@" ;}
error() { printf '\033[1;31m!> ERROR: \033[m\033[1m%s\033[m\n' "$@" >&2 ;}
emergency_shell() {
error "Cannot continue init due to errors above, starting emergency shell" \
"When ready, type 'exit' to continue the boot."
/bin/sh -l
}
}
|