diff options
author | jvdias <jvdias@fedoraproject.org> | 2005-10-28 20:12:12 +0000 |
---|---|---|
committer | jvdias <jvdias@fedoraproject.org> | 2005-10-28 20:12:12 +0000 |
commit | a06ea57c08ec1bbd267c3be823d2575300371b3f (patch) | |
tree | 4a3f33c74dcd7d6df317ccc647eeb9f8a9df7efb /named.init | |
parent | 38a73ea995f2080736f599208f7f5c11e33338cb (diff) | |
download | bind-a06ea57c08ec1bbd267c3be823d2575300371b3f.tar.gz bind-a06ea57c08ec1bbd267c3be823d2575300371b3f.tar.xz bind-a06ea57c08ec1bbd267c3be823d2575300371b3f.zip |
check for -D option properly
Diffstat (limited to 'named.init')
-rwxr-xr-x | named.init | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -67,14 +67,19 @@ start() { if ! egrep -q "/proc ${ROOTDIR}/proc" /proc/mounts; then mount --bind /proc ${ROOTDIR}/proc >/dev/null 2>&1 fi - if echo "$OPTIONS" | egrep -q '(\<|['"'"'"\ ])-D(\>|['"'"'"\ ])'; then + dbus=0; + for a in $OPTIONS; do + if [ $a = "-D" ]; then + dbus=1; + fi; + done + if [ $dbus -eq 1 ]; then if ! /bin/mount | egrep -q "^/var/run/dbus/system_bus_socket on ${ROOTDIR}/var/run/dbus/system_bus_socket"; then mkdir -p ${ROOTDIR}/var/run/dbus touch ${ROOTDIR}/var/run/dbus/system_bus_socket; mount --bind /var/run/dbus/system_bus_socket ${ROOTDIR}/var/run/dbus/system_bus_socket > /dev/null 2>&1; fi; - fi; - + fi; fi no_write_master_zones=0 if [ -e /etc/selinux/config ]; then |