summaryrefslogtreecommitdiff
path: root/system/kegs/xkegs.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-08-23 08:55:48 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-08-23 08:55:48 -0300
commit6b6c8ec350e3c15a4a374cb3580e227da34b03ac (patch)
treebc2d1bdddf2cd68ab45b4b7e6132c02bfcae89d5 /system/kegs/xkegs.sh
parent6b3dd7e2812a14275ad9c17c416f254b336df4ee (diff)
downloadslackbuilds-6b6c8ec350e3c15a4a374cb3580e227da34b03ac.tar.gz
system/kegs: Added (Kent's Emulated GS)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/kegs/xkegs.sh')
-rw-r--r--system/kegs/xkegs.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/kegs/xkegs.sh b/system/kegs/xkegs.sh
new file mode 100644
index 0000000000..55f0719b73
--- /dev/null
+++ b/system/kegs/xkegs.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Wrapper script for xkegs, part of SlackBuilds.org kegs package
+# By B. Watson
+
+# xkegs is smart enough to read its conf file from ~/.config.kegs, but
+# it will choke if the file's not found. Also, it's smart enough to
+# read it from /usr/share/kegs/config.kegs, but it'll freeze if
+# it doesn't have write permission!
+
+if [ ! -e ~/.config.kegs ]; then
+ cat /usr/share/kegs/config.kegs.default > ~/.config.kegs
+fi
+
+exec /usr/libexec/xkegs