#! /bin/sh #--------------------------------------------------------------------------- # /var/install/bin/pre-setup-services-apache2-config-modules-menu # # Creation: 2007-06-08 hbfl # Last Update: $Id$ # # Copyright (c) 2007-2013 the eisfair team, team(at)eisfair(dot)org # # 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. #--------------------------------------------------------------------------- # create the modules file for apacha2 # that was found in the menu-root from the system menu_file=$(ls /var/install/menu/setup.services.apache2.config.modules.*.menu 2>/dev/null | awk -F. '{ print $1"."$2"."$3"."$4"."$5"."$6"."$NF}' | uniq) old_menu_file=$(ls /var/install/menu/setup.services.apache2.module.*.menu 2>/dev/null | awk -F. '{ print $1"."$2"."$3"."$4"."$5"."$NF}' | uniq) { echo "" echo "apache2" echo "Apache2 module administration" for menu in ${menu_file} do package_entry="$(grep "" ${menu} | sed 's###g')" menu_entry="$(grep "title" ${menu} | sed 's###g')" echo "${menu_entry}" done for menu in ${old_menu_file} do package_entry="`grep "" ${menu} | sed 's###g'`" if [ ! -f /var/install/menu/setup.services.apache2.module.${package_entry}.menu ] then package_entry="$(grep "apache2_" ${menu} | sed 's###g')" package_entry="$(echo $package_entry | sed 's#apache2_##g')" fi menu_entry="$(grep "title" ${menu} | sed 's###g')" echo "${menu_entry}" done } > /var/install/menu/setup.services.apache2.config.modules.menu exit 0