add music-making.sh

This commit is contained in:
Ingolf Wagner 2020-02-23 11:02:24 +08:00
parent 63d995bda9
commit 25b29657ff
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 52 additions and 0 deletions

50
assets/music-making.sh Normal file
View file

@ -0,0 +1,50 @@
function stop_program(){
echo "stop $1"
sudo systemctl stop $1
}
function start_program(){
echo "start $1"
sudo systemctl stop $1
}
function start(){
echo "starting programs again"
echo "-----------------------"
echo
start_program backup.on-porani.insecure.timer
start_program backup.on-workhorse.insecure.timer
start_program backup.on-workout.insecure.timer
start_program syncthing.service
start_program tlp.service
start_program tor.service
}
function stop(){
echo "stopping programs"
echo "-----------------"
echo
stop_program backup.on-porani.insecure.timer
stop_program backup.on-workhorse.insecure.timer
stop_program backup.on-workout.insecure.timer
stop_program syncthing.service
stop_program tlp.service
stop_program tor.service
}
# ----
# main
# ----
stop
echo
echo -n "wait to start again -> "
read
echo
start

View file

@ -282,6 +282,8 @@ in {
ffmpeg
(writeShellScriptBin "shrink-exports"
(fileContents <assets/shrink_exports>))
(writeShellScriptBin "music-making"
(fileContents <assets/music-making.sh>))
screenKey
replaceLinks