Browse Source

moved case in the end

Toastie 1 year ago
parent
commit
08374d1a02
1 changed files with 12 additions and 23 deletions
  1. 12 23
      bootrap-bullseye.sh

+ 12 - 23
bootrap-bullseye.sh

@@ -31,28 +31,6 @@ netNTP=pool.ntp.org
 
 [ -f ./config.sh ] && source config.sh
 
-# Check if the function exists
-case $1 in
-  grmlnetwork) 
-    grmlnetwork()
-    ;;
-  install)
-    install()
-    ;;
-  install2)
-    install2()
-    ;;
-  bootloader)
-    bootloader()
-    ;;
-  postinstall)
-    postinstall()
-    ;;
-  *)
-    echo "Valid functions are: grmlnetwork, install, postinstall" >&2
-    ;;
-esac
-
 
 install(){
 #----------
@@ -238,4 +216,15 @@ localectl set-locale LC_MESSAGES=en_US.UTF-8  # System messages.
 #localectl set-locale LC_RESPONSE=en_US.UTF-8  # How responses (such as Yes and No) appear
 update-locale
 timedatectl set-timezone Europe/Berlin
-}
+}
+
+
+# Switch to functions...
+case $1 in
+  grmlnetwork) grmlnetwork() ;;
+  install)     install()     ;;
+  install2)    install2()     ;;
+  bootloader)  bootloader()  ;;
+  postinstall) postinstall() ;;
+  *) echo "Valid functions are: grmlnetwork, install, postinstall" >&2  ;;
+esac