X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-support%2Fdnsmasq%2Fdnsmasq%2Fdnsmasq-resolvconf-helper;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-support%2Fdnsmasq%2Fdnsmasq%2Fdnsmasq-resolvconf-helper;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=db54d467e65d356d1f909c5e8d37f2e34d6aba73;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq/dnsmasq-resolvconf-helper b/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq/dnsmasq-resolvconf-helper deleted file mode 100644 index db54d46..0000000 --- a/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq/dnsmasq-resolvconf-helper +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash -# -# Borrowing heavily from the dnsmasq initscript's version of support for -# resolvconf, intended for use in systemd-only configurations. -# -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/usr/sbin/dnsmasq -NAME=dnsmasq - -# Most configuration options in /etc/default/dnsmasq are deprecated -# but still honoured. -if [ -r /etc/default/$NAME ]; then - . /etc/default/$NAME -fi - -start_resolvconf() -{ - # If interface "lo" is explicitly disabled in /etc/default/dnsmasq - # Then dnsmasq won't be providing local DNS, so don't add it to - # the resolvconf server set. - for interface in $DNSMASQ_EXCEPT - do - [ $interface = lo ] && return - done - - if [ -x /sbin/resolvconf ] ; then - echo "nameserver 127.0.0.1" | - /sbin/resolvconf -a lo.$NAME - fi - return 0 -} - -stop_resolvconf() -{ - if [ -x /sbin/resolvconf ] ; then - /sbin/resolvconf -d lo.$NAME - fi - return 0 -} - -case "$1" in - start) - start_resolvconf - exit 0 - ;; - stop) - stop_resolvconf - exit 0 - ;; - restart) - stop_resolvconf - start_resolvconf - exit 0 - ;; - *) - echo "Usage: /etc/init.d/$NAME {start|stop|restart}" >&2 - exit 3 - ;; -esac - -exit 0 -