#!/bin/sh #--------------------------------------------------------------------------- # /var/install/bin/pre-setup-services-cups-menu # # Creation: 2023-11-19 hbfl # Last Update: $Id$ # # Copyright (c) 2019-@@YEAR@@ 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 menu file for cups # --------------------------------------------------------------------------- # create cups menu # --------------------------------------------------------------------------- create_cups_menu() { { echo '' echo '' echo 'cups' echo 'CUPS Administration' echo 'View documentation' echo 'Edit configuration' echo 'Advanced configuration handling' installed=$(eisman check cups) if [ "${installed}" = "installed" ] then echo 'Show status' echo 'Stop service' echo 'Start service' fi } > ${menu_file} chmod 0640 ${menu_file} } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- main() { menu_file="${4}" create_cups_menu exit 0 } # --------------------------------------------------------------------------- # exec main # --------------------------------------------------------------------------- main "${@}" # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------