From 4f8c0bd73d2053dcc554ad819382a945c275b70a Mon Sep 17 00:00:00 2001 From: nospoonuser Date: Thu, 31 May 2018 12:59:56 +0200 Subject: [PATCH] better function syntax --- scripts/menufunction.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/menufunction.sh b/scripts/menufunction.sh index 99892ea..385f647 100644 --- a/scripts/menufunction.sh +++ b/scripts/menufunction.sh @@ -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