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