checking for server pressence

This commit is contained in:
shockrah 2020-10-08 15:26:01 -07:00
parent fcc666fbfd
commit 9f914614a9

8
music
View File

@ -1,6 +1,12 @@
#!/bin/sh #!/bin/sh
# TODO: what # Start the mocp server if its not there yet
proc_id=`pgrep moc`
if [ -z $proc_id ]; then
mocp --server
fi
if [ ! $1 = "" ]; then if [ ! $1 = "" ]; then
echo Args: $@ echo Args: $@
# start X pause volume_set # start X pause volume_set