checking for server pressence
This commit is contained in:
parent
fcc666fbfd
commit
9f914614a9
8
music
8
music
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user