#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/add_advancedconfigmenu # configure Advanced configuration file handling # # Copyright (c) 2001-2003 Ansgar Püster # # Creation: 23.12.2003 ap # Last Update: $Id$ # # 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. #---------------------------------------------------------------------------- if [ "$1" = "-quiet" ] then quietflag='quiet' shift fi if [ $# -lt 1 ]; then echo "Usage: $0 -quiet PACKAGE" exit 1 fi package=$1 if [ "$quietflag" != "quiet" ] then echo "Create files for 'Advanced configuration handling' for package $package" echo "Creating menu file ..." fi sed "s/template-/${package}-/" < /var/install/menu/setup.services.template.advancedconfig.menu \ > /var/install/menu/setup.services.$package.advancedconfig.menu if [ "$quietflag" != "quiet" ] then echo "Done" echo "Creating links in /var/install/bin" fi cd /var/install/bin ln -sf template-advancedconfig ${package}-advancedconfig ln -sf template-backup-config ${package}-backup-config ln -sf template-restore-dconf ${package}-restore-dconf ln -sf template-restore-bconf ${package}-restore-bconf ln -sf template-diff-cd ${package}-diff-cd ln -sf template-diff-cb ${package}-diff-cb ln -sf template-diff-db ${package}-diff-db ln -sf template-diff-bb ${package}-diff-bb cd - if [ "$quietflag" != "quiet" ] then echo "Done" echo echo "Add the following line to the menu file of package $package" colecho "/var/install/bin/${package}-advancedconfig Advanced configuration file handling" br b br fi