Combine with files from virtual working directory
This commit is contained in:
8
images/btsync/build/runit/btsync
Normal file
8
images/btsync/build/runit/btsync
Normal 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
|
||||
2
images/btsync/build/runit/cron
Normal file
2
images/btsync/build/runit/cron
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
/usr/sbin/cron -f
|
||||
2
images/btsync/build/runit/sshd
Normal file
2
images/btsync/build/runit/sshd
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
/usr/sbin/sshd -D
|
||||
24
images/btsync/build/runit/syslog
Normal file
24
images/btsync/build/runit/syslog
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
SYSLOGNG_OPTS=""
|
||||
|
||||
[ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng
|
||||
|
||||
case "x$CONSOLE_LOG_LEVEL" in
|
||||
x[1-8])
|
||||
dmesg -n $CONSOLE_LOG_LEVEL
|
||||
;;
|
||||
x)
|
||||
;;
|
||||
*)
|
||||
echo "CONSOLE_LOG_LEVEL is of unaccepted value."
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -e /dev/xconsole ]
|
||||
then
|
||||
mknod -m 640 /dev/xconsole p
|
||||
fi
|
||||
|
||||
syslog-ng -F -p /var/run/syslog-ng.pid $SYSLOGNG_OPTS
|
||||
Reference in New Issue
Block a user