#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/system-base-set-menu-colors - set color style # # Copyright (c) 2001-2005 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org # # Creation: 06.08.2005 dv # 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. #---------------------------------------------------------------------------- # include eislib . /var/install/include/eislib . /etc/config.d/setup clrhome mecho -info "Change eisfair menu color style" mecho mecho " 1: Classic eisfair menu style" mecho " 2: MidnightCommander menu style" mecho " 3: Black and white menu style" mecho " 4: Gray menu style" mecho " 5: Blue menu style" mecho " 6: Magenta menu style" mecho " ENTER: Return (without selection)" mecho /var/install/bin/ask "Choose option:" '' '1' '2' '3' '4' '5' '6' '^$' > /tmp/ask.$$ rc=$? a=`cat /tmp/ask.$$` rm -f /tmp/ask.$$ if [ $rc = 255 ] then exit 1 fi case "$a" in 1) cp /var/install/styles/menu.conf.eis /etc/menu.conf ;; 2) cp /var/install/styles/menu.conf.mc /etc/menu.conf ;; 3) cp /var/install/styles/menu.conf.bw /etc/menu.conf ;; 4) cp /var/install/styles/menu.conf.dos /etc/menu.conf ;; 5) cp /var/install/styles/menu.conf.blue /etc/menu.conf ;; 6) cp /var/install/styles/menu.conf.col /etc/menu.conf ;; "") exit 0 ;; *) mecho -warn "invalid input." anykey ;; esac mecho -info "Color style modified!" mecho -info "Please exit from running menu applications to make changes take effect." anykey exit 0