oups, first wrapper ;)
[my-code/dfb-photoshow.git] / showdir
diff --git a/showdir b/showdir
new file mode 100755 (executable)
index 0000000..2e7d71b
--- /dev/null
+++ b/showdir
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# author: hackbard
+# searches for pictures to present
+
+usage() {
+ echo "$0 usage: $0 <sec> <dir>"
+ echo
+}
+
+if [ "$#" <= "2" ]; then
+       usage
+       exit 0
+fi
+
+dir="$2"
+
+files=`find $dir -name '*.jpg'`
+files="$files
+`find $dir -name '*.JPG'`"
+
+./dfb-photoshow $1 $files
+
+echo
+echo done
+