better function syntax

This commit is contained in:
nospoonuser 2018-05-31 12:59:56 +02:00
parent d2dd6230bd
commit 4f8c0bd73d
1 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
function menuhead {
menuhead(){
if [ -n $SERIAL_PORT ]; then
SERIAL="SERIAL $SERIAL_PORT $SERIAL_SPEED"
@ -16,7 +16,7 @@ timeout 300
EOF
}
function menulivehead {
menulivehead(){
cat << EOF
label -
menu label Live Systems:
@ -25,7 +25,7 @@ menu disable
EOF
}
function menulive {
menulive(){
cat << EOF
label live
@ -37,7 +37,7 @@ append initrd=../live/initrd.img boot=live
EOF
}
function menulivepxe {
menulivepxe(){
# FETCH
# ftp, http, tftp
@ -132,7 +132,7 @@ fi
function menuhwhead {
menuhwhead(){
cat << EOF
menu separator
@ -143,7 +143,7 @@ menu disable
EOF
}
function menuhwhdt {
menuhwhdt(){
cat << EOF
label hdt
@ -156,7 +156,7 @@ endtext
EOF
}
function menuhwmemtest {
menuhwmemtest(){
cat << EOF
label memtest86+
menu label ^Memory Failure Detection (memtest86+)
@ -164,7 +164,7 @@ kernel ../memtest
EOF
}
function menuinstallerhead {
menuinstallerhead(){
cat << EOF
menu separator
@ -175,7 +175,7 @@ menu disable
EOF
}
function menuinstaller {
menuinstaller(){
dist=$1
cat << EOF