root/ff-luci/trunk/contrib/package/luci-addons/dist/usr/bin/run-parts
@
2371
| Revision 2371, 220 bytes (checked in by Cyrus, 5 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | set +e |
| 3 | |
| 4 | if [ $# -lt 1 ]; then |
| 5 | echo "Usage: run-parts <dir>" |
| 6 | exit 1 |
| 7 | fi |
| 8 | |
| 9 | if [ ! -d $1 ]; then |
| 10 | echo "Not a directory: $1" |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | for i in $1/*; do |
| 15 | [ -x $i ] && $i |
| 16 | done |
| 17 | |
| 18 | exit 0 |
Note: See TracBrowser
for help on using the browser.
