#!/bin/bash # Simple script to test if the old (and deprecated) DNS_EXTRA_NS # if it is present change to the new and better IP eval $(llxcfg-showvars DNS_EXTRA_NS) TEXTDOMAIN="lliurex-up" export TEXTDOMAIN INFO_MESSAGE="$(gettext "Change old DNS configuration values")" _migrate() { rc=0 echo $DNS_EXTRA_NS| grep -q '194.179.1.100\|194.179.1.101' || rc=1 if [ $rc -eq 0 ]; then # The DNS is old, setting the new and improved llxcfg-setvars DNS_EXTRA_NS="172.27.111.5" fi } _show_info() { echo "${INFO_MESSAGE}" } # MAIN script case $1 in migrate|partial) _migrate ;; info) _show_info ;; *) ;; esac exit 0