mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
disable command-line options for now
This commit is contained in:
parent
51095a837a
commit
91ed792303
16
raspi-config
16
raspi-config
@ -370,9 +370,13 @@ do
|
|||||||
case $i in
|
case $i in
|
||||||
--memory-split)
|
--memory-split)
|
||||||
OPT_MEMORY_SPLIT=GET
|
OPT_MEMORY_SPLIT=GET
|
||||||
|
printf "Not currently supported\n"
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
--memory-split=*)
|
--memory-split=*)
|
||||||
OPT_MEMORY_SPLIT=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
|
OPT_MEMORY_SPLIT=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
|
||||||
|
printf "Not currently supported\n"
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# unknown option
|
# unknown option
|
||||||
@ -380,12 +384,12 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "GET" = "${OPT_MEMORY_SPLIT:-}" ]; then
|
#if [ "GET" = "${OPT_MEMORY_SPLIT:-}" ]; then
|
||||||
set -u # Fail on unset variables
|
# set -u # Fail on unset variables
|
||||||
get_current_memory_split
|
# get_current_memory_split
|
||||||
echo $CURRENT_MEMSPLIT
|
# echo $CURRENT_MEMSPLIT
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Everything else needs to be run as root
|
# Everything else needs to be run as root
|
||||||
if [ $(id -u) -ne 0 ]; then
|
if [ $(id -u) -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user