diff --git a/cubon/.gitkeep b/cubon/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/cubon/etc/rc.local b/cubon/etc/rc.local new file mode 100644 index 0000000..298a55b --- /dev/null +++ b/cubon/etc/rc.local @@ -0,0 +1,7 @@ +#!/bin/bash +su tilman -c 'python3 /media/hd/admin/doorbell/doorbell.py >> /media/hd/admin/doorbell/doorbell.log 2>&1 &' +sh /usr/local/bin/start-h2.sh +sh /usr/local/bin/start-drivetunnel.sh +sh /usr/local/bin/start-transactions.sh +sudo -u nobody docker start home-assistant +exit 0 diff --git a/cubon/usr/local/bin/mount-hidrive.sh b/cubon/usr/local/bin/mount-hidrive.sh new file mode 100644 index 0000000..1621ac7 --- /dev/null +++ b/cubon/usr/local/bin/mount-hidrive.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# mit Passwort-Eingabe +#sshfs -o allow_other -o workaround=rename tilman@sftp.hidrive.strato.com:public /media/hidrive +# mit SSH-Key +sshfs -o IdentityFile=/home/tilman/.ssh/id_rsa -o allow_other tilman@sftp.hidrive.strato.com:public /media/hidrive diff --git a/cubon/usr/local/bin/unmount-hidrive.sh b/cubon/usr/local/bin/unmount-hidrive.sh new file mode 100644 index 0000000..2a274e6 --- /dev/null +++ b/cubon/usr/local/bin/unmount-hidrive.sh @@ -0,0 +1,2 @@ +#!/bin/sh +fusermount -u /media/hidrive