浏览代码

Clean up spelling and wording

pull/93/head
flo269 GitHub 8 年前
父节点
当前提交
f86c376757
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. +10
    -10
      install.sh

+ 10
- 10
install.sh 查看文件

@@ -29,12 +29,12 @@ show_menu () {
if [ $BUTTON -eq 0 ]; then if [ $BUTTON -eq 0 ]; then
case $OPTION in case $OPTION in
1) 1)
confirmAnswer "Would you like run apt-get update & apt-get upgrade?"
confirmAnswer "Would you like to run apt-get update & apt-get upgrade?"
if [ $? = 0 ]; then if [ $? = 0 ]; then
apt-get -y update; apt-get -y upgrade; apt-get -y update; apt-get -y upgrade;
fi fi


confirmAnswer "Would you like to install wiringPI? This is required to control the GPIO"
confirmAnswer "Would you like to install wiringPI? This is required to control the GPIO."
if [ $? = 0 ]; then if [ $? = 0 ]; then
git clone git://git.drogon.net/wiringPi; git clone git://git.drogon.net/wiringPi;
cd wiringPi; cd wiringPi;
@@ -48,7 +48,7 @@ show_menu () {
apt-get -y install libpcre3-dev apt-get -y install libpcre3-dev
pip install -r requirements.txt pip install -r requirements.txt


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 to 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 '# CraftBeerPi 1-wire support' >> "/boot/config.txt"
@@ -65,7 +65,7 @@ show_menu () {
show_menu show_menu
;; ;;
2) 2)
confirmAnswer "Are you sure you want to clear the CraftBeerPi. All hardware setting will be deleted"
confirmAnswer "Are you sure you want to clear the CraftBeerPi? All hardware settings will be deleted."
if [ $? = 0 ]; then if [ $? = 0 ]; then
sudo rm -f craftbeerpi.db sudo rm -f craftbeerpi.db
whiptail --title "Database Delted" --msgbox "The CraftBeerPi database was succesfully deleted. You must hit OK to continue." 8 78 whiptail --title "Database Delted" --msgbox "The CraftBeerPi database was succesfully deleted. You must hit OK to continue." 8 78
@@ -75,19 +75,19 @@ show_menu () {
fi fi
;; ;;
3) 3)
confirmAnswer "Are you sure you want to add CraftBeerPi to autostart"
confirmAnswer "Are you sure you want to add CraftBeerPi to autostart?"
if [ $? = 0 ]; then if [ $? = 0 ]; then
sed "s@#DIR#@${PWD}@g" config/craftbeerpiboot > /etc/init.d/craftbeerpiboot sed "s@#DIR#@${PWD}@g" config/craftbeerpiboot > /etc/init.d/craftbeerpiboot
chmod 755 /etc/init.d/craftbeerpiboot; chmod 755 /etc/init.d/craftbeerpiboot;
update-rc.d craftbeerpiboot defaults; update-rc.d craftbeerpiboot defaults;
whiptail --title "Added succesfull to autostart" --msgbox "The CraftBeerPi was added to autostart succesfully. You must hit OK to continue." 8 78
whiptail --title "Succesfull add to autostart" --msgbox "CraftBeerPi was added to autostart succesfully. You must hit OK to continue." 8 78
show_menu show_menu
else else
show_menu show_menu
fi fi
;; ;;
4) 4)
confirmAnswer "Are you sure you want to remove CraftBeerPi from autostart"
confirmAnswer "Are you sure you want to remove CraftBeerPi from autostart?"
if [ $? = 0 ]; then if [ $? = 0 ]; then
update-rc.d -f craftbeerpiboot remove update-rc.d -f craftbeerpiboot remove
show_menu show_menu
@@ -103,7 +103,7 @@ show_menu () {
;; ;;
6) 6)
sudo /etc/init.d/craftbeerpiboot stop sudo /etc/init.d/craftbeerpiboot stop
whiptail --title "CraftBeerPi stoped" --msgbox "The software is stoped" 8 78
whiptail --title "CraftBeerPi stoped" --msgbox "The software is stopped." 8 78
show_menu show_menu
;; ;;
7) 7)
@@ -126,10 +126,10 @@ show_menu () {
fi fi
;; ;;
9) 9)
confirmAnswer "Are you sure you want to delete all CraftBeerPi log files"
confirmAnswer "Are you sure you want to delete all CraftBeerPi log files?"
if [ $? = 0 ]; then if [ $? = 0 ]; then
sudo rm -rf logs/*.log sudo rm -rf logs/*.log
whiptail --title "Log files deleted" --msgbox "All CraftBeerPi Files are deleted. You must hit OK to continue." 8 78
whiptail --title "Log files deleted" --msgbox "All CraftBeerPi files are deleted. You must hit OK to continue." 8 78
show_menu show_menu
else else
show_menu show_menu


正在加载...
取消
保存