diff options
author | Simon Rettberg | 2019-05-27 16:58:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-27 16:58:01 +0200 |
commit | 58a01fd257b6f190d6a44662fbd78944fbc608aa (patch) | |
tree | 9c92b4b9f7bf6acf4b710a29e56ca638db73a09b /slx-tools.template | |
parent | Match proper field (diff) | |
download | slx-tools-58a01fd257b6f190d6a44662fbd78944fbc608aa.tar.gz slx-tools-58a01fd257b6f190d6a44662fbd78944fbc608aa.tar.xz slx-tools-58a01fd257b6f190d6a44662fbd78944fbc608aa.zip |
Modularize
Diffstat (limited to 'slx-tools.template')
-rw-r--r-- | slx-tools.template | 23 |
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 |