Add a script to create a pipe

I should eventually work this into the main ocarina script somehow, but
probably not until I get generic commands going.  `ocarina openpipe`
should do...

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-01-28 14:09:49 -05:00
parent 4c36e0b7e2
commit e1c527c6e7
1 changed files with 17 additions and 0 deletions

17
scripts/makepipe Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
DEBUG=true
CONFIG=$XDG_CONFIG_HOME
if [ "$CONFIG" == "" ]; then
CONFIG="~/.config"
fi
CONFIG=$CONFIG/saria
if [ $DEBUG == "true" ]; then
CONFIG=$CONFIG-debug
fi
mkdir -p $CONFIG
if [ ! -f $CONFIG/saria.pipe ]; then
mkfifo $CONFIG/saria.pipe
fi