From 72220890bd5f0d6ace56c0e1d8139d9010bc8d0e Mon Sep 17 00:00:00 2001 From: Jesse Hathaway Date: Fri, 2 Nov 2007 09:31:27 -0400 Subject: add new option --syslinux-menu to enable syslinux menu added a new syslinux menu splash screen, I'm not an artist but I think it is better than the generic splash which was already included. Also added the svg file if anyone wants to make any changes. --- helpers/lh_config | 8 +- manpages/lh_config.de.1 | 2 + manpages/lh_config.en.1 | 2 + templates/syslinux/menu/data/splash.png | Bin 57186 -> 14015 bytes templates/syslinux/menu/data/splash.svg | 304 ++++++++++++++++++++++++++++++++ templates/syslinux/menu/header.cfg | 22 ++- 6 files changed, 328 insertions(+), 10 deletions(-) create mode 100644 templates/syslinux/menu/data/splash.svg diff --git a/helpers/lh_config b/helpers/lh_config index 808c9cc..bb723ec 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -95,6 +95,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--symlinks enabled|disabled]\n\ \t [--syslinux-splash FILE]\n\ \t [--syslinux-timeout SECONDS]\n\ +\t [--syslinux-menu enabled|disabled]\n\ \t [--sysvinit enabled|disabled]\n\ \t [--tasksel aptitude|tasksel]\n\ \t [--tasks TASK]\n\ @@ -106,7 +107,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ Local_arguments () { - ARGUMENTS="$(getopt --longoptions apt:,apt-ftp-proxy:,apt-http-proxy:,apt-pdiffs:,apt-pipeline:,apt-recommends:,apt-secure:,bootstrap:,cache:,cache-indices:,cache-packages:,cache-stages:,debconf-frontend:,debconf-nowarnings:,debconf-priority:,genisoimage:,initramfs:,losetup:,mode:,root-command:,tasksel:,includes:,templates:,architecture:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,distribution:,mirror-bootstrap:,mirror-bootstrap-security:,mirror-binary:,mirror-binary-security:,sections:,chroot-filesystem:,union-filesystem:,exposed-root:,hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,binary-images:,binary-indices:,bootappend-install:,bootappend-live:,bootloader:,chroot-build:,debian-installer:,debian-installer-daily:,encryption:,grub-splash:,hostname:,iso-application:,iso-preparer:,iso-publisher:,iso-volume:,memtest:,net-root-filesystem:,net-root-mountoptions:,net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:,net-cow-server:,syslinux-splash:,syslinux-timeout:,username:,source:,source-images:,breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")" + ARGUMENTS="$(getopt --longoptions apt:,apt-ftp-proxy:,apt-http-proxy:,apt-pdiffs:,apt-pipeline:,apt-recommends:,apt-secure:,bootstrap:,cache:,cache-indices:,cache-packages:,cache-stages:,debconf-frontend:,debconf-nowarnings:,debconf-priority:,genisoimage:,initramfs:,losetup:,mode:,root-command:,tasksel:,includes:,templates:,architecture:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,distribution:,mirror-bootstrap:,mirror-bootstrap-security:,mirror-binary:,mirror-binary-security:,sections:,chroot-filesystem:,union-filesystem:,exposed-root:,hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,binary-images:,binary-indices:,bootappend-install:,bootappend-live:,bootloader:,chroot-build:,debian-installer:,debian-installer-daily:,encryption:,grub-splash:,hostname:,iso-application:,iso-preparer:,iso-publisher:,iso-volume:,memtest:,net-root-filesystem:,net-root-mountoptions:,net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:,net-cow-server:,syslinux-splash:,syslinux-timeout:,syslinux-menu:,username:,source:,source-images:,breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")" if [ "${?}" != "0" ] then @@ -518,6 +519,11 @@ Local_arguments () shift 2 ;; + --syslinux-menu) + LH_SYSLINUX_MENU="${2}" + shift 2 + ;; + --username) LH_USERNAME="${2}" shift 2 diff --git a/manpages/lh_config.de.1 b/manpages/lh_config.de.1 index 4b20d12..242d743 100644 --- a/manpages/lh_config.de.1 +++ b/manpages/lh_config.de.1 @@ -141,6 +141,8 @@ Hier ist eine vollst\[:a]ndige Liste aller verf\[:u]gbaren Optionen f\[:u]r lh_c .IP "\fB\-\-syslinux\-timeout\fR \fISECONDS\fR" 4 +.IP "\fB\-\-syslinux\-menu\fR enabled|disabled" 4 + .IP "\fB\-\-sysvinit\fR enabled|disabled" 4 .IP "\fB\-\-tasksel\fR aptitude|tasksel" 4 diff --git a/manpages/lh_config.en.1 b/manpages/lh_config.en.1 index 46aec1e..a4b163a 100644 --- a/manpages/lh_config.en.1 +++ b/manpages/lh_config.en.1 @@ -160,6 +160,8 @@ EXAMPLE: .IP "\fB\-\-syslinux\-timeout\fR \fISECONDS\fR" 4 +.IP "\fB\-\-syslinux\-menu\fR enabled|disabled" 4 + .IP "\fB\-\-sysvinit\fR enabled|disabled" 4 .IP "\fB\-\-tasksel\fR aptitude|tasksel" 4 diff --git a/templates/syslinux/menu/data/splash.png b/templates/syslinux/menu/data/splash.png index 5669615..c2a8312 100644 Binary files a/templates/syslinux/menu/data/splash.png and b/templates/syslinux/menu/data/splash.png differ diff --git a/templates/syslinux/menu/data/splash.svg b/templates/syslinux/menu/data/splash.svg new file mode 100644 index 0000000..44c5ac1 --- /dev/null +++ b/templates/syslinux/menu/data/splash.svg @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + Debian Live + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/syslinux/menu/header.cfg b/templates/syslinux/menu/header.cfg index bb3dac8..9d89bdc 100644 --- a/templates/syslinux/menu/header.cfg +++ b/templates/syslinux/menu/header.cfg @@ -5,13 +5,17 @@ timeout {$LH_SYSLINUX_TIMEOUT} prompt 0 menu background {$SPLASH} -menu color title * #ffffffff * -menu color border * #00000000 #00000000 none -menu color sel * #ffffffff #76a1d0ff * -menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * -menu color hotkey 1;37;40;44 #90ffffff #00000000 std -menu vshift 7 -menu hshift 6 -menu width 67 -menu tabmsg Press [tab] to edit the menu entry +menu color border * #00000000 #00000000 none +menu color sel * #ffffffff #ff4c0000 none +menu color unsel * #ff4c0000 #00000000 none +menu color hotsel * #fffc1818 #ff4c0000 none +menu color hotkey * #fffc1818 #ffffffff none +menu color tabmsg * #ff4c0000 #00000000 none +menu color timeout_msg * #ff4c0000 #00000000 none +menu color timeout * #fffc1818 #00000000 none +menu vshift 8 +menu hshift 5 +menu width 70 +menu tabmsg Press [Tab] to edit the menu entry +menu autoboot Boot default in # seconds menu timeoutrow 16 -- cgit v1.0