Preliminary commit of new files

This commit is contained in:
2014-12-18 12:12:17 +00:00
parent d6919960c0
commit 25a6f48597
63 changed files with 1004 additions and 0 deletions

8
build/runit/btsync Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
mkdir -p $BTSYNC_DATA
if [ ! -e $BTSYNC_CONFIG ]; then
mkdir -p `dirname $BTSYNC_CONFIG`
/opt/btsync --dump-sample-config > $BTSYNC_CONFIG
sed -i "s,\(\"storage_path\"\s*:\).*,\1 \"$BTSYNC_DATA\"\,," $BTSYNC_CONFIG
fi
/opt/btsync --nodaemon --config $BTSYNC_CONFIG