This repository has been archived by the owner on Apr 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
sleep 1 | ||
|
||
#Delete Cache | ||
sudo rm -r /home/pi/.cache | ||
sudo rm -r /home/pi/.config | ||
sudo rm -r /home/pi/.netease-musicbox | ||
sudo rm -r /home/pi/userInfo | ||
sleep 1 | ||
|
||
#AutoUpdate Before Launch | ||
#Update dingdang-robot | ||
cd /home/pi/dingdang | ||
git pull | ||
|
||
#Update dingdang-contrib | ||
cd /home/pi/.dingdang/contrib | ||
git pull | ||
|
||
#Update dingdang-contrib Requirements | ||
sudo pip install --upgrade -r requirements.txt | ||
sleep 1 | ||
|
||
#Restore Configuration of AlsaMixer | ||
alsactl --file=/home/pi/asound.state restore | ||
sleep 1 | ||
|
||
#Launch Dingdang in LxTerminal | ||
lxterminal -e "python /home/pi/dingdang/dingdang.py" | ||
sleep 1 | ||
|
||
#Start Respeaker-Switcher in Background | ||
sudo python /home/pi/ReSpeaker-Switcher/switcher.py & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
sleep 1 | ||
|
||
#Delete Cache | ||
sudo rm -r /root/.cache | ||
sudo rm -r /root/.config | ||
sudo rm -r /root/.netease-musicbox | ||
sudo rm -r /root/userInfo | ||
sleep 1 | ||
|
||
#Update dingdang-robot | ||
cd /home/pi/dingdang | ||
git pull | ||
|
||
#Update dingdang-contrib | ||
cd /home/pi/.dingdang/contrib | ||
git pull | ||
|
||
#Update dingdang-contrib Requirements | ||
sudo pip install --upgrade -r requirements.txt | ||
sleep 1 | ||
|
||
#Restore Configuration of AlsaMixer | ||
alsactl --file=/home/pi/asound.state restore | ||
sleep 1 | ||
|
||
#Launch Dingdang in LxTerminal | ||
sudo lxterminal -e "python /home/pi/dingdang/dingdang.py" | ||
sleep 1 | ||
|
||
#Start Respeaker-Switcher in Background | ||
sudo python /home/pi/ReSpeaker-Switcher/switcher.py & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
sleep 1 | ||
|
||
#Delete Cache | ||
sudo rm -r /root/.cache | ||
sudo rm -r /root/.config | ||
sudo rm -r /root/.netease-musicbox | ||
sudo rm -r /root/userInfo | ||
|
||
#Restore Configuration of AlsaMixer | ||
alsactl --file=/home/pi/asound.state restore | ||
sleep 1 | ||
|
||
#Start DingDang | ||
sudo lxterminal -e "python /home/pi/dingdang/dingdang.py" | ||
sleep 1 | ||
sudo python /home/pi/ReSpeaker-Switcher/switcher.py & |