From aa9ccf77c6648515ba58c37b9345cdbd561028db Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 8 May 2008 15:37:41 +0000 Subject: * Mördercommit ;-) * Major Repository Reorganisation * API 0.4 Softfreeze to come MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/package/luci-addons/dist/usr/bin/run-parts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 contrib/package/luci-addons/dist/usr/bin/run-parts (limited to 'contrib/package/luci-addons/dist/usr') diff --git a/contrib/package/luci-addons/dist/usr/bin/run-parts b/contrib/package/luci-addons/dist/usr/bin/run-parts new file mode 100644 index 0000000000..0f0cbbdf5f --- /dev/null +++ b/contrib/package/luci-addons/dist/usr/bin/run-parts @@ -0,0 +1,18 @@ +#!/bin/sh +set +e + +if [ $# -lt 1 ]; then + echo "Usage: run-parts " + exit 1 +fi + +if [ ! -d $1 ]; then + echo "Not a directory: $1" + exit 1 +fi + +for i in $1/*; do + [ -x $i ] && $i +done + +exit 0 \ No newline at end of file -- cgit v1.2.3