summaryrefslogtreecommitdiff
path: root/libre/abuse-libre/abuse.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libre/abuse-libre/abuse.sh')
-rw-r--r--libre/abuse-libre/abuse.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libre/abuse-libre/abuse.sh b/libre/abuse-libre/abuse.sh
new file mode 100644
index 000000000..228bb6f7b
--- /dev/null
+++ b/libre/abuse-libre/abuse.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Use sane configuration files, unless they already exists
+
+if [ ! -d $HOME/.abuse ]; then
+ mkdir -p $HOME/.abuse
+fi
+if [ ! -f $HOME/.abuse/abuserc ]; then
+ cp /usr/share/abuse/default.abuserc $HOME/.abuse/abuserc
+fi
+if [ ! -f $HOME/.abuse/gamma.lsp ]; then
+ cp /usr/share/abuse/default.gamma.lsp $HOME/.abuse/gamma.lsp
+fi
+
+exec /usr/bin/abuse.elf