#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/dns-edit - edit dns configuration file # # Creation: 28.04.2002 fm # Last Update: $Id$ # # Copyright (c) 2002-2005 Frank Meyer # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- packagename=dns configfile=/etc/config.d/dns clrhome /usr/local/bin/colecho "Edit DNS configuration" gn # backup existing files if [ -f "$configfile" ] then # backup original file /var/install/bin/backup-file -quiet $packagename # edit parameter file if /var/install/bin/edit $configfile then echo if /var/install/bin/ask "Activate DNS configuration now" then /etc/init.d/dns stop /etc/init.d/dns start fi fi else /usr/local/bin/colecho "Configuration $configfile could not be found!" br x br /var/install/bin/anykey fi