浏览代码

Adjustments for installation on DietPi

pull/188/head
Wendell Borges 7 年前
父节点
当前提交
e66a934c40
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. +10
    -3
      install.sh

+ 10
- 3
install.sh 查看文件

@@ -43,6 +43,9 @@ show_menu () {
rm -rf wiringPi; rm -rf wiringPi;
fi fi


# By default DietPi does not have this package installed.
apt-get -y install build-essential

apt-get -y install python-setuptools apt-get -y install python-setuptools
easy_install pip easy_install pip
apt-get -y install python-dev apt-get -y install python-dev
@@ -52,9 +55,13 @@ show_menu () {
confirmAnswer "Would you like to add active 1-wire support at your Raspberry PI now? IMPORTANT: The 1-wire thermometer must be conneted to GPIO 4!" confirmAnswer "Would you like to add active 1-wire support at your Raspberry PI now? IMPORTANT: The 1-wire thermometer must be conneted to GPIO 4!"
if [ $? = 0 ]; then if [ $? = 0 ]; then
#apt-get -y update; apt-get -y upgrade; #apt-get -y update; apt-get -y upgrade;
echo '# CraftBeerPi 1-wire support' >> "/boot/config.txt"
echo 'dtoverlay=w1-gpio,gpiopin=4,pullup=on' >> "/boot/config.txt"

if [ -e /DietPi/config.txt ]; then
echo '# CraftBeerPi 1-wire support' >> "/DietPi/config.txt"
echo 'dtoverlay=w1-gpio,gpiopin=4,pullup=on' >> "/DietPi/config.txt"
else
echo '# CraftBeerPi 1-wire support' >> "/boot/config.txt"
echo 'dtoverlay=w1-gpio,gpiopin=4,pullup=on' >> "/boot/config.txt"
fi
fi fi


# checking for file splash.png # checking for file splash.png


正在加载...
取消
保存