Add --enable-quiet to configure, makes Finit real quiet.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-06-07 15:57:11 +02:00
1 parent 2026486fda
commit 0dd97de046
9 files changed
+56 -30

No files matched your search

Vendored
+18 -6
View File
@@ -28,6 +28,7 @@ defaults()
debug=${debug:=0}
embedded=${embedded:=0}
inetd=${inetd:=1}
verbose=${verbose:=1}
static=${static:=0}
disable_plugins=${disable_plugins:=0}
}
@@ -59,8 +60,13 @@ fi
else
echo "Inetd : DISABLED"
fi
if [ $verbose -ne 1 ]; then
echo "Quiet Finit : YES"
else
echo "Quiet Finit : NO, verbose output (default)"
fi
if [ $static -ne 0 ]; then
echo "Static finit : YES"
echo "Static Finit : YES"
fi
if [ $disable_plugins -eq 1 ]; then
echo "Plugins : DISABLED"
@@ -98,7 +104,8 @@ usage()
echo
echo " --enable-embedded Enable embedded defaults, BusBox getty, mdev etc."
echo " --enable-debug Enable debug flags, '-O0, -g'"
echo " --enable-static Link finit statically. This disables a few features."
echo " --enable-quiet Quiet mode, reduce screen output to absolute minimum."
echo " --enable-static Link statically. This disables a few features."
echo " --disable-inetd Disable inetd support if not needed."
echo " --disable-plugins Disable plugins"
echo
@@ -171,6 +178,14 @@ while [ "$*" != "" ]; do
embedded=1
;;
enable-quiet)
verbose=0
;;
enable-static)
static=1
;;
disable-inetd)
inetd=0
;;
@@ -179,10 +194,6 @@ while [ "$*" != "" ]; do
disable_plugins=1
;;
enable-static)
static=1
;;
help)
usage
;;
@@ -263,6 +274,7 @@ if [ x"$heading" != x"" ]; then
echo "#define INIT_HEADING \"$heading\"" >> config.h
fi
echo "#define VERBOSE_MODE $verbose" >> config.h
echo "#define FINIT_FIFO \"$fifo\"" >> config.h
echo "#define FINIT_CONF \"$config\"" >> config.h
echo "#define FINIT_RCSD \"$rcsd\"" >> config.h