@@ -32,10 +32,10 @@ netNTP=pool.ntp.org
[ -f ./config.sh ] && source config.sh
# Check if the function exists
-if declare -f "$1" > /dev/null
+if declare -f "$1()" > /dev/null
then
# call arguments verbatim
- "$@"
+ "$@()"
else
# Show a helpful error
echo "Valid functions are: grmlnetwork, prepare, install, bootloader, postinstall" >&2