Use yesno more
This commit is contained in:
parent
2c3c27e251
commit
0df6d640f7
@ -29,7 +29,6 @@ depend() {
|
|||||||
need localmount
|
need localmount
|
||||||
before logger
|
before logger
|
||||||
after clock sysctl
|
after clock sysctl
|
||||||
keywords notimeout
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup_tmp_dir() {
|
cleanup_tmp_dir() {
|
||||||
@ -37,7 +36,7 @@ cleanup_tmp_dir() {
|
|||||||
|
|
||||||
mkdir -p "${dir}"
|
mkdir -p "${dir}"
|
||||||
cd "${dir}"
|
cd "${dir}"
|
||||||
if [ "${wipe_tmp}" = "yes" ]; then
|
if yesno ${wipe_tmp:-${WIPE_TMP:-yes}}; then
|
||||||
ebegin "Wiping ${dir} directory"
|
ebegin "Wiping ${dir} directory"
|
||||||
local startopts="-x . -depth"
|
local startopts="-x . -depth"
|
||||||
[ "${RC_UNAME}" = "Linux" ] && startopts=". -xdev -depth"
|
[ "${RC_UNAME}" = "Linux" ] && startopts=". -xdev -depth"
|
||||||
@ -73,7 +72,7 @@ cleanup_tmp_dir() {
|
|||||||
start() {
|
start() {
|
||||||
# Put a nologin file in /etc to prevent people from logging
|
# Put a nologin file in /etc to prevent people from logging
|
||||||
# in before system startup is complete.
|
# in before system startup is complete.
|
||||||
if [ "${DELAYLOGIN}" = "yes" ]; then
|
if yesno ${delay_login:-${DELAYLOGIN}}; then
|
||||||
echo "System bootup in progress - please wait" > /etc/nologin
|
echo "System bootup in progress - please wait" > /etc/nologin
|
||||||
cp /etc/nologin /etc/nologin.boot
|
cp /etc/nologin /etc/nologin.boot
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user