summaryrefslogtreecommitdiffstats
path: root/slx-tools.template
diff options
context:
space:
mode:
Diffstat (limited to 'slx-tools.template')
-rw-r--r--slx-tools.template23
1 files changed, 23 insertions, 0 deletions
diff --git a/slx-tools.template b/slx-tools.template
new file mode 100644
index 0000000..0fb99b3
--- /dev/null
+++ b/slx-tools.template
@@ -0,0 +1,23 @@
+#!/bin/ash
+
+# Collection of small ash functions utilized in various scripts.
+################################################################################
+
+case "$PATH" in
+ *opt/openslx*) ;;
+ *) export PATH="$PATH:/opt/openslx/bin:/opt/openslx/sbin" ;;
+esac
+
+BASE=.
+
+%DEFS%
+
+if [ "${0##*/}" = "slx-tools" ]; then
+ if [ $# -ge 1 ]; then
+ "$@"
+ else
+ echo "slx-tools [function] [args...]"
+ fi
+else
+ :
+fi