Files
piradio-mini/run_raspi-config.sh
T
2016-10-23 20:05:05 +02:00

29 lines
712 B
Bash
Executable File

#!/bin/bash
# Radio daemon post install script 2
# $Id: run_raspi-config.sh,v 1.3 2015/01/31 15:42:20 bob Exp $
TYPE=$1 # No instructions before this line
I2C=4 # Uses I2C libraries
CAD=5 # PiFace control and display
echo "The installation will now run the raspi-config cofiguration program!"
echo "When it runs select Advanced options"
if [[ ${TYPE} -eq ${CAD} ]]; then
echo "and enable automatic loading of the SPI kernel module"
elif [[ ${TYPE} -eq ${I2C} ]]; then
echo "and enable automatic loading of the I2C kernel module"
fi
echo -n "Enter y to continue or x to exit: "
read ans
if [[ ${ans} == 'x' ]]; then
echo "Installation stopped"
exit 0
fi
/usr/bin/raspi-config
exit 0