Use yesno for more robustness

This commit is contained in:
Roy Marples
2007-11-22 13:37:24 +00:00
parent 5f37abddde
commit a1b9dabf4e
4 changed files with 9 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ check_statedir() {
#splash "critical" &
echo
eerror "To function properly, \"$1\" needs to exist."
if [ "${RC_FORCE_AUTO}" = "yes" ] ; then
if yesno ${RC_FORCE_AUTO}; then
eerror "Attempting to create \"$1\" for you ..."
mount -o remount,rw /
mkdir -p "$1"