From 58a01fd257b6f190d6a44662fbd78944fbc608aa Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 May 2019 16:58:01 +0200 Subject: Modularize --- slx-tools.template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 slx-tools.template (limited to 'slx-tools.template') 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 -- cgit v1.2.3-55-g7522