use egrep -q for dbus socket mount check

This commit is contained in:
jvdias 2005-12-02 00:08:28 +00:00
parent f84fe39673
commit dc8dced0c2

View File

@ -74,7 +74,7 @@ start() {
fi;
done
if [ $dbus -eq 1 ]; then
if ! egrep '^/[^[:space:]]+[[:space:]]+'${ROOTDIR}'/var/run/dbus' /proc/mounts; then
if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${ROOTDIR}'/var/run/dbus' /proc/mounts; then
mkdir -p ${ROOTDIR}/var/run/dbus
if [ ! -d /var/run/dbus ] ; then
mkdir -p /var/run/dbus ;