aboutsummaryrefslogtreecommitdiffstats
path: root/roles/doorputer/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/doorputer/files')
-rw-r--r--roles/doorputer/files/eth0.network7
-rw-r--r--roles/doorputer/files/lockserver.service15
-rw-r--r--roles/doorputer/files/motd13
3 files changed, 35 insertions, 0 deletions
diff --git a/roles/doorputer/files/eth0.network b/roles/doorputer/files/eth0.network
new file mode 100644
index 0000000..601e041
--- /dev/null
+++ b/roles/doorputer/files/eth0.network
@@ -0,0 +1,7 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=yes
+IPv6AcceptRA=yes
+LLMNR=yes
diff --git a/roles/doorputer/files/lockserver.service b/roles/doorputer/files/lockserver.service
new file mode 100644
index 0000000..a09666d
--- /dev/null
+++ b/roles/doorputer/files/lockserver.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Lockserver
+
+[Service]
+Type=simple
+User=doorman
+WorkingDirectory=/home/doorman
+ExecStartPre=/home/doorman/lockserver/init.sh
+ExecStart=/home/doorman/lockserver/lockd.py
+StandardOutput=syslog
+StandardError=inherit
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/roles/doorputer/files/motd b/roles/doorputer/files/motd
new file mode 100644
index 0000000..5c83520
--- /dev/null
+++ b/roles/doorputer/files/motd
@@ -0,0 +1,13 @@
+
+ _ _
+ | | | |
+ __| | ___ ___ _ __ _ __ _ _| |_ ___ _ __
+ / _` |/ _ \ / _ \| '__| '_ \| | | | __/ _ \ '__|
+| (_| | (_) | (_) | | | |_) | |_| | || __/ |
+ \__,_|\___/ \___/|_| | .__/ \__,_|\__\___|_|
+ | |
+ |_|
+
+Open da door:
+$ sudo -i
+# echo O > /dev/ttyUSB0