From 91ed792303310f4c08be98cfcf90d45e1af01699 Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Sun, 28 Oct 2012 21:14:01 +0000 Subject: [PATCH] disable command-line options for now --- raspi-config | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/raspi-config b/raspi-config index bb04f3f..3120aac 100755 --- a/raspi-config +++ b/raspi-config @@ -370,9 +370,13 @@ do case $i in --memory-split) OPT_MEMORY_SPLIT=GET + printf "Not currently supported\n" + exit 1 ;; --memory-split=*) OPT_MEMORY_SPLIT=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` + printf "Not currently supported\n" + exit 1 ;; *) # unknown option @@ -380,12 +384,12 @@ do esac done -if [ "GET" = "${OPT_MEMORY_SPLIT:-}" ]; then - set -u # Fail on unset variables - get_current_memory_split - echo $CURRENT_MEMSPLIT - exit 0 -fi +#if [ "GET" = "${OPT_MEMORY_SPLIT:-}" ]; then +# set -u # Fail on unset variables +# get_current_memory_split +# echo $CURRENT_MEMSPLIT +# exit 0 +#fi # Everything else needs to be run as root if [ $(id -u) -ne 0 ]; then