From c6baad54c88aab00cb3996b655dc8f6aa18e122f Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Sat, 25 May 2013 17:15:01 +0100 Subject: [PATCH] use start_x for camera enable rather than startx to reduce confusion --- raspi-config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/raspi-config b/raspi-config index 78db954..8406b28 100755 --- a/raspi-config +++ b/raspi-config @@ -433,13 +433,14 @@ set_camera() { [ -e /boot/config.txt ] || touch /boot/config.txt if [ "$1" -eq 0 ]; then # disable camera - set_config_var startx 0 /boot/config.txt + set_config_var start_x 0 /boot/config.txt + sed /boot/config.txt -i -e "s/^startx/#startx/" sed /boot/config.txt -i -e "s/^start_file/#start_file/" sed /boot/config.txt -i -e "s/^fixup_file/#fixup_file/" else # enable camera - set_config_var startx 1 /boot/config.txt + set_config_var start_x 1 /boot/config.txt set_config_var gpu_mem 128 /boot/config.txt - sed /boot/config.txt -i -e "s/^start_file/#start_file/" + sed /boot/config.txt -i -e "s/^startx/#startx/" sed /boot/config.txt -i -e "s/^fixup_file/#fixup_file/" fi }