add music-making.sh
This commit is contained in:
parent
63d995bda9
commit
25b29657ff
2 changed files with 52 additions and 0 deletions
50
assets/music-making.sh
Normal file
50
assets/music-making.sh
Normal 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
|
|
@ -282,6 +282,8 @@ in {
|
|||
ffmpeg
|
||||
(writeShellScriptBin "shrink-exports"
|
||||
(fileContents <assets/shrink_exports>))
|
||||
(writeShellScriptBin "music-making"
|
||||
(fileContents <assets/music-making.sh>))
|
||||
|
||||
screenKey
|
||||
replaceLinks
|
||||
|
|
Loading…
Reference in a new issue